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