|
@ -200,7 +200,7 @@ public class EpidemicSentryPostServiceImpl extends BaseServiceImpl<EpidemicSentr |
|
|
if (!StringUtils.isNotBlank(entity.getGridId())) { |
|
|
if (!StringUtils.isNotBlank(entity.getGridId())) { |
|
|
throw new RenException("根据哨卡id未查到网格id信息!"); |
|
|
throw new RenException("根据哨卡id未查到网格id信息!"); |
|
|
} |
|
|
} |
|
|
String param = "G=" + entity.getGridId() + ";P=" + entity.getSentryPostCode(); |
|
|
String param = "G=" + entity.getGridId() + "&P=" + entity.getSentryPostCode(); |
|
|
entity.setMaCodeUrl(this.createMaCode(param, MA_FRONT_PAGE_URL)); |
|
|
entity.setMaCodeUrl(this.createMaCode(param, MA_FRONT_PAGE_URL)); |
|
|
baseDao.updateById(entity); |
|
|
baseDao.updateById(entity); |
|
|
return new Result().ok("生成单个小程序码成功。"); |
|
|
return new Result().ok("生成单个小程序码成功。"); |
|
@ -220,7 +220,7 @@ public class EpidemicSentryPostServiceImpl extends BaseServiceImpl<EpidemicSentr |
|
|
throw new RenException("根据网格id未查到哨卡信息!"); |
|
|
throw new RenException("根据网格id未查到哨卡信息!"); |
|
|
} |
|
|
} |
|
|
for (EpidemicSentryPostEntity entity : categoryEntityList) { |
|
|
for (EpidemicSentryPostEntity entity : categoryEntityList) { |
|
|
String param = "G=" + entity.getGridId() + ";P=" + entity.getSentryPostCode(); |
|
|
String param = "G=" + entity.getGridId() + "&P=" + entity.getSentryPostCode(); |
|
|
entity.setMaCodeUrl(this.createMaCode(param, MA_FRONT_PAGE_URL)); |
|
|
entity.setMaCodeUrl(this.createMaCode(param, MA_FRONT_PAGE_URL)); |
|
|
baseDao.updateById(entity); |
|
|
baseDao.updateById(entity); |
|
|
} |
|
|
} |
|
|