daixiantong il y a 4 ans
Parent
révision
7064717184
1 fichiers modifiés avec 25 ajouts et 0 suppressions
  1. +25
    -0
      src/main/java/com/taauav/admin/service/impl/LsAdminServiceImpl.java

+ 25
- 0
src/main/java/com/taauav/admin/service/impl/LsAdminServiceImpl.java Voir le fichier

@@ -434,6 +434,31 @@ public class LsAdminServiceImpl extends BaseServiceImpl<LsAdminMapper, LsAdmin>
} else {
return null;
}

//判断是否取过溧水区 city_id = 320117
Boolean exist = false;
BigInteger lsId = new BigInteger("320117");
if (cityVoList.size() > 0) {
for (SysCityVo cityVo : cityVoList) {
if (cityVo.getId().equals(lsId)) {
exist = true;
break;
}
}
}
if (!exist) {
SysCity lishui = cityService.getInfoById(lsId);
SysCityVo lsVo = new SysCityVo();
BeanUtils.copyProperties(lishui, lsVo);
lsVo.setSurfaceWater(0);
lsVo.setShoreLine(0);
lsVo.setOutfall(0);
lsVo.setWaterQuality(0);
lsVo.setIsTrue(0);
lsVo.setDriverList(new ArrayList<>());
cityVoList.add(lsVo);
}

return cityVoList;
}


Chargement…
Annuler
Enregistrer