Browse Source

修改e锦水和志愿者小程序生成网格码首页地址

feature/screenDataPush
liuchuang 4 years ago
parent
commit
2000ce57dc
  1. 9
      esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/DeptMaCodeServiceImpl.java

9
esua-epdc/epdc-admin/epdc-admin-server/src/main/java/com/elink/esua/epdc/service/impl/DeptMaCodeServiceImpl.java

@ -67,7 +67,8 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
/**
* 小程序首页
*/
private static String MA_FRONT_PAGE_URL = "pages/index/index";
private static String MA_FRONT_PAGE_URL = "pages/indexNew/indexNew";
private static String MA_FRONT_VOLUNTEER_PAGE_URL = "pages/heartNew/heartNew";
@Override
public PageData<DeptMaCodeDTO> page(Map<String, Object> params) {
@ -152,7 +153,7 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
for (Long gridId : gridIdList) {
entity = new DeptMaCodeEntity();
entity.setCodeUrl(this.createMaCode(String.valueOf(gridId), MA_FRONT_PAGE_URL, NumConstant.ZERO_STR));
entity.setVolunteerCodeUrl(this.createMaCode(String.valueOf(gridId), MA_FRONT_PAGE_URL, NumConstant.ONE_STR));
entity.setVolunteerCodeUrl(this.createMaCode(String.valueOf(gridId), MA_FRONT_VOLUNTEER_PAGE_URL, NumConstant.ONE_STR));
entity.setGridId(gridId);
baseDao.deleteMaCodeByGridId(gridId);
this.baseDao.insert(entity);
@ -164,7 +165,7 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
public Result createDeptMaCode(String gridId) {
DeptMaCodeEntity entity = new DeptMaCodeEntity();
entity.setCodeUrl(this.createMaCode(gridId, MA_FRONT_PAGE_URL, NumConstant.ZERO_STR));
entity.setVolunteerCodeUrl(this.createMaCode(gridId, MA_FRONT_PAGE_URL, NumConstant.ONE_STR));
entity.setVolunteerCodeUrl(this.createMaCode(gridId, MA_FRONT_VOLUNTEER_PAGE_URL, NumConstant.ONE_STR));
entity.setGridId(Long.parseLong(gridId));
entity.setLeaderFlag(YesOrNoEnum.NO.value());
baseDao.deleteMaCodeByGridId(Long.parseLong(gridId));
@ -176,7 +177,7 @@ public class DeptMaCodeServiceImpl extends BaseServiceImpl<DeptMaCodeDao, DeptMa
public Result createGridLeaderMaCode() {
DeptMaCodeEntity entity = new DeptMaCodeEntity();
entity.setCodeUrl(this.createMaCode("gridLeader", MA_FRONT_PAGE_URL, NumConstant.ZERO_STR));
entity.setVolunteerCodeUrl(this.createMaCode("gridLeader", MA_FRONT_PAGE_URL, NumConstant.ONE_STR));
entity.setVolunteerCodeUrl(this.createMaCode("gridLeader", MA_FRONT_VOLUNTEER_PAGE_URL, NumConstant.ONE_STR));
entity.setLeaderFlag(YesOrNoEnum.YES.value());
baseDao.deleteMaCodeByLeaderFlag(NumConstant.ONE_STR);
this.baseDao.insert(entity);

Loading…
Cancel
Save