Browse Source

生成小程序码参数调整

dev
Jackwang 6 years ago
parent
commit
a23db54e7e
  1. 4
      esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/EpidemicSentryPostServiceImpl.java

4
esua-epdc/epdc-module/epdc-custom/epdc-custom-server/src/main/java/com/elink/esua/epdc/modules/epidemic/service/impl/EpidemicSentryPostServiceImpl.java

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

Loading…
Cancel
Save