|
|
@ -147,26 +147,31 @@ public class FactUserHouseServiceImpl implements FactUserHouseService { |
|
|
|
formDTO.setLevel("community"); |
|
|
|
List<FactUserHouseResultDTO> commList = factGridUserHouseDailyService.statAgency(formDTO); |
|
|
|
if (!commList.isEmpty()) { |
|
|
|
commList.forEach(item -> item.setDateId(formDTO.getDateId())); |
|
|
|
factAgencyUserHouseDailyService.insertBatch(ConvertUtils.sourceToTarget(commList, FactAgencyUserHouseDailyEntity.class)); |
|
|
|
} |
|
|
|
formDTO.setLevel("street"); |
|
|
|
List<FactUserHouseResultDTO> streetList = factGridUserHouseDailyService.statAgency(formDTO); |
|
|
|
if (!streetList.isEmpty()) { |
|
|
|
streetList.forEach(item -> item.setDateId(formDTO.getDateId())); |
|
|
|
factAgencyUserHouseDailyService.insertBatch(ConvertUtils.sourceToTarget(streetList, FactAgencyUserHouseDailyEntity.class)); |
|
|
|
} |
|
|
|
formDTO.setLevel("district"); |
|
|
|
List<FactUserHouseResultDTO> districtList = factGridUserHouseDailyService.statAgency(formDTO); |
|
|
|
if (!districtList.isEmpty()) { |
|
|
|
districtList.forEach(item -> item.setDateId(formDTO.getDateId())); |
|
|
|
factAgencyUserHouseDailyService.insertBatch(ConvertUtils.sourceToTarget(districtList, FactAgencyUserHouseDailyEntity.class)); |
|
|
|
} |
|
|
|
formDTO.setLevel("city"); |
|
|
|
List<FactUserHouseResultDTO> cityList = factGridUserHouseDailyService.statAgency(formDTO); |
|
|
|
if (!cityList.isEmpty()) { |
|
|
|
cityList.forEach(item -> item.setDateId(formDTO.getDateId())); |
|
|
|
factAgencyUserHouseDailyService.insertBatch(ConvertUtils.sourceToTarget(cityList, FactAgencyUserHouseDailyEntity.class)); |
|
|
|
} |
|
|
|
formDTO.setLevel("province"); |
|
|
|
List<FactUserHouseResultDTO> provinceList = factGridUserHouseDailyService.statAgency(formDTO); |
|
|
|
if (!provinceList.isEmpty()) { |
|
|
|
provinceList.forEach(item -> item.setDateId(formDTO.getDateId())); |
|
|
|
factAgencyUserHouseDailyService.insertBatch(ConvertUtils.sourceToTarget(provinceList, FactAgencyUserHouseDailyEntity.class)); |
|
|
|
} |
|
|
|
|
|
|
|