diff --git a/src/main/java/com/xkrs/service/impl/DispatchFirePointServiceImpl.java b/src/main/java/com/xkrs/service/impl/DispatchFirePointServiceImpl.java index 8592f4d..46d8de0 100644 --- a/src/main/java/com/xkrs/service/impl/DispatchFirePointServiceImpl.java +++ b/src/main/java/com/xkrs/service/impl/DispatchFirePointServiceImpl.java @@ -264,6 +264,8 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService { firePointPreciseEntity.setFirePointAddress(geoCodeHelper.getCalFirePointAddress()); firePointPreciseEntity.setRemark(""); } else { + firePointPreciseEntity.setTownCode(geoCodeHelper.getCalTownCode()); + firePointPreciseEntity.setTownName(geoCodeHelper.getCalTownName()); firePointPreciseEntity.setFirePointAddress(geoCodeHelper.getCalFirePointAddress()); String remark = "接收到的countyCode=" + countyCode + ",计算得到的countyCode=" + geoCodeHelper.getCalCountyCode() + "。接收到的countyName=" + countyName + ",计算得到的countyName=" + geoCodeHelper.getCalCountyName() + "。接收到的townCode=" + townCode + ",计算得到的townCode=" + geoCodeHelper.getCalTownCode() + "。"; firePointPreciseEntity.setRemark(remark); @@ -291,6 +293,8 @@ public class DispatchFirePointServiceImpl implements DispatchFirePointService { firePointOrdinaryEntity.setFirePointAddress(geoCodeHelper.getCalFirePointAddress()); firePointOrdinaryEntity.setRemark(""); } else { + firePointOrdinaryEntity.setTownCode(geoCodeHelper.getCalTownCode()); + firePointOrdinaryEntity.setTownName(geoCodeHelper.getCalTownName()); firePointOrdinaryEntity.setFirePointAddress(geoCodeHelper.getCalFirePointAddress()); String remark = "接收到的countyCode=" + countyCode + ",计算得到的countyCode=" + geoCodeHelper.getCalCountyCode() + "。接收到的countyName=" + countyName + ",计算得到的countyName=" + geoCodeHelper.getCalCountyName() + "。接收到的townCode=" + townCode + ",计算得到的townCode=" + geoCodeHelper.getCalTownCode() + "。"; firePointOrdinaryEntity.setRemark(remark);