|
|
@ -90,6 +90,66 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode |
|
|
|
ImportGeneralDTO dto = ConvertUtils.sourceToTarget(data, ImportGeneralDTO.class); |
|
|
|
dto.setNum(num); |
|
|
|
dto.setCustomerId(formDTO.getCustomerId()); |
|
|
|
if(StringUtils.isBlank(data.getAgencyName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "所属组织的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getGridName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "所属网格的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getNeighborHoodName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info,"所属小区的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getBuildingName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info,"所属楼栋的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getHouseType())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "房屋类型的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getPurpose())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "房屋用途的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getRentFlagString())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "是否出租的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getOwnerIdCard())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "房主身份证的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getOwnerName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "房主姓名的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getOwnerPhone())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "房主电话的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(StringUtils.isBlank(data.getDoorName())){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "门牌号的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if(null == data.getBuildingUnit()){ |
|
|
|
nums.add(num); |
|
|
|
disposeErrorMsg(info, "单元号的值未填写"); |
|
|
|
return; |
|
|
|
} |
|
|
|
// 应产品要求
|
|
|
|
if (StringUtils.isNotBlank(dto.getHouseType()) ){ |
|
|
|
if( !"楼房".equals(dto.getHouseType()) && !dto.getHouseType().equals("平房") && !dto.getHouseType().equals("别墅") ){ |
|
|
@ -455,7 +515,9 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode |
|
|
|
List<String> list = icBuildingDao.selectHouseTotalIsNull(formDTO.getCustomerId()); |
|
|
|
if (!CollectionUtils.isEmpty(list)){ |
|
|
|
List<UpdateBuildingHouseNumResultDTO> houseNum = icBuildingDao.selectHouseNum(list); |
|
|
|
icBuildingDao.allUpdateHouseNum(houseNum); |
|
|
|
if (!CollectionUtils.isEmpty(houseNum)){ |
|
|
|
icBuildingDao.allUpdateHouseNum(houseNum); |
|
|
|
} |
|
|
|
} |
|
|
|
// 删除缓存
|
|
|
|
icHouseRedis.delTemporaryCacheGrids(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|
|