|
|
@ -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); |
|
|
|