|
@ -57,6 +57,7 @@ import com.epmet.dao.*; |
|
|
import com.epmet.dto.*; |
|
|
import com.epmet.dto.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.*; |
|
|
import com.epmet.dto.form.demand.UserDemandNameQueryFormDTO; |
|
|
import com.epmet.dto.form.demand.UserDemandNameQueryFormDTO; |
|
|
|
|
|
import com.epmet.dto.form.stats.UserHouseStatsQueryFormDTO; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.*; |
|
|
import com.epmet.dto.result.demand.IcResiDemandDictDTO; |
|
|
import com.epmet.dto.result.demand.IcResiDemandDictDTO; |
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
|
import com.epmet.dto.result.demand.OptionDTO; |
|
@ -70,6 +71,7 @@ import com.epmet.opendata.dto.result.ResidentByIdCardResultDTO; |
|
|
import com.epmet.opendata.feign.GuardarDatosFeignClient; |
|
|
import com.epmet.opendata.feign.GuardarDatosFeignClient; |
|
|
import com.epmet.resi.partymember.feign.ResiPartyMemberOpenFeignClient; |
|
|
import com.epmet.resi.partymember.feign.ResiPartyMemberOpenFeignClient; |
|
|
import com.epmet.service.*; |
|
|
import com.epmet.service.*; |
|
|
|
|
|
import com.epmet.stats.UserHouseStatsResultDTO; |
|
|
import com.github.pagehelper.Page; |
|
|
import com.github.pagehelper.Page; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageHelper; |
|
|
import com.github.pagehelper.PageInfo; |
|
|
import com.github.pagehelper.PageInfo; |
|
@ -162,6 +164,9 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
@Resource |
|
|
@Resource |
|
|
private IcUserChangeDetailedDao icUserChangeDetailedDao; |
|
|
private IcUserChangeDetailedDao icUserChangeDetailedDao; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private DataReportOpenFeignClient dataReportOpenFeignClient; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private QueryWrapper<IcResiUserEntity> getWrapper(Map<String, Object> params) { |
|
|
private QueryWrapper<IcResiUserEntity> getWrapper(Map<String, Object> params) { |
|
@ -2045,6 +2050,16 @@ public class IcResiUserServiceImpl extends BaseServiceImpl<IcResiUserDao, IcResi |
|
|
resultDTO.setOrgId(formDTO.getOrgId()); |
|
|
resultDTO.setOrgId(formDTO.getOrgId()); |
|
|
resultDTO.setOrgType(formDTO.getOrgType()); |
|
|
resultDTO.setOrgType(formDTO.getOrgType()); |
|
|
|
|
|
|
|
|
|
|
|
// 计算较上月的数据
|
|
|
|
|
|
Date lastDayOfLastMonth = DateUtils.getLastDayOfMonth(DateUtils.addDateMonths(new Date(), -1)); |
|
|
|
|
|
UserHouseStatsQueryFormDTO form = new UserHouseStatsQueryFormDTO(formDTO.getOrgId(), formDTO.getOrgType(), DateUtils.format(lastDayOfLastMonth, "yyyyMMdd")); |
|
|
|
|
|
UserHouseStatsResultDTO lastMonthUserHouseStats = getResultDataOrThrowsException(dataReportOpenFeignClient.getUserHouseDailyStatsByDateId(form), |
|
|
|
|
|
ServiceConstant.DATA_REPORT_SERVER, EpmetErrorCode.SERVER_ERROR.getCode(), null, null); |
|
|
|
|
|
|
|
|
|
|
|
resultDTO.setUserTotalJSY(resultDTO.getUserTotal() - lastMonthUserHouseStats.getUserTotal()); |
|
|
|
|
|
resultDTO.setCzUserTotalJSY(resultDTO.getCzUserTotal() - lastMonthUserHouseStats.getCzUserTotal()); |
|
|
|
|
|
resultDTO.setLdUserTotalJSY(resultDTO.getLdUserTotal() - lastMonthUserHouseStats.getLdUserTotal()); |
|
|
|
|
|
|
|
|
return resultDTO; |
|
|
return resultDTO; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|