|
@ -16,6 +16,7 @@ import com.epmet.dto.ImportGeneralDTO; |
|
|
import com.epmet.dto.form.ImportInfoFormDTO; |
|
|
import com.epmet.dto.form.ImportInfoFormDTO; |
|
|
import com.epmet.dto.form.ImportTaskCommonFormDTO; |
|
|
import com.epmet.dto.form.ImportTaskCommonFormDTO; |
|
|
import com.epmet.dto.result.ImportResultDTO; |
|
|
import com.epmet.dto.result.ImportResultDTO; |
|
|
|
|
|
import com.epmet.dto.result.UpdateBuildingHouseNumResultDTO; |
|
|
import com.epmet.entity.IcHouseEntity; |
|
|
import com.epmet.entity.IcHouseEntity; |
|
|
import com.epmet.enums.HousePurposeEnums; |
|
|
import com.epmet.enums.HousePurposeEnums; |
|
|
import com.epmet.enums.HouseRentFlagEnums; |
|
|
import com.epmet.enums.HouseRentFlagEnums; |
|
@ -89,6 +90,14 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode |
|
|
ImportGeneralDTO dto = ConvertUtils.sourceToTarget(data, ImportGeneralDTO.class); |
|
|
ImportGeneralDTO dto = ConvertUtils.sourceToTarget(data, ImportGeneralDTO.class); |
|
|
dto.setNum(num); |
|
|
dto.setNum(num); |
|
|
dto.setCustomerId(formDTO.getCustomerId()); |
|
|
dto.setCustomerId(formDTO.getCustomerId()); |
|
|
|
|
|
if (StringUtils.isBlank(data.getAgencyName()) || StringUtils.isBlank(data.getGridName()) || StringUtils.isBlank(data.getNeighborHoodName()) || |
|
|
|
|
|
StringUtils.isBlank(data.getBuildingName()) || StringUtils.isBlank(data.getHouseType()) || StringUtils.isBlank(data.getPurpose()) || |
|
|
|
|
|
StringUtils.isBlank(data.getRentFlagString()) || StringUtils.isBlank(data.getOwnerIdCard()) || StringUtils.isBlank(data.getOwnerName()) || |
|
|
|
|
|
StringUtils.isBlank(data.getOwnerPhone()) || StringUtils.isBlank(data.getDoorName()) || null == data.getBuildingUnit()){ |
|
|
|
|
|
nums.add(num); |
|
|
|
|
|
disposeErrorMsg(info,ImportErrorMsgConstants.HOUSE_ERROR); |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
// 应产品要求
|
|
|
// 应产品要求
|
|
|
if (StringUtils.isNotBlank(dto.getHouseType()) ){ |
|
|
if (StringUtils.isNotBlank(dto.getHouseType()) ){ |
|
|
if( !"楼房".equals(dto.getHouseType()) && !dto.getHouseType().equals("平房") && !dto.getHouseType().equals("别墅") ){ |
|
|
if( !"楼房".equals(dto.getHouseType()) && !dto.getHouseType().equals("平房") && !dto.getHouseType().equals("别墅") ){ |
|
@ -450,6 +459,14 @@ public class ImportHouseInfoListener extends AnalysisEventListener<HouseInfoMode |
|
|
@Override |
|
|
@Override |
|
|
public void doAfterAllAnalysed(AnalysisContext context) { |
|
|
public void doAfterAllAnalysed(AnalysisContext context) { |
|
|
finalDispose(); |
|
|
finalDispose(); |
|
|
|
|
|
// 更新ic_building户数
|
|
|
|
|
|
List<String> list = icBuildingDao.selectHouseTotalIsNull(formDTO.getCustomerId()); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(list)){ |
|
|
|
|
|
List<UpdateBuildingHouseNumResultDTO> houseNum = icBuildingDao.selectHouseNum(list); |
|
|
|
|
|
if (!CollectionUtils.isEmpty(houseNum)){ |
|
|
|
|
|
icBuildingDao.allUpdateHouseNum(houseNum); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
// 删除缓存
|
|
|
// 删除缓存
|
|
|
icHouseRedis.delTemporaryCacheGrids(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|
icHouseRedis.delTemporaryCacheGrids(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|
icHouseRedis.delTemporaryCacheNeighBorHood(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|
icHouseRedis.delTemporaryCacheNeighBorHood(formDTO.getCustomerId(), formDTO.getUserId()); |
|
|