|
@ -73,13 +73,41 @@ public class FactUserHouseServiceImpl implements FactUserHouseService { |
|
|
FactUserHouseResultDTO dto = null; |
|
|
FactUserHouseResultDTO dto = null; |
|
|
if (params.containsKey("startTime") && params.containsKey("endTime")) { |
|
|
if (params.containsKey("startTime") && params.containsKey("endTime")) { |
|
|
if (StringUtils.isNotBlank(params.get("startTime").toString()) && StringUtils.isNotBlank(params.get("endTime").toString())) { |
|
|
if (StringUtils.isNotBlank(params.get("startTime").toString()) && StringUtils.isNotBlank(params.get("endTime").toString())) { |
|
|
params.put("dateId", StringUtils.EMPTY); |
|
|
if (params.containsKey("level")) { |
|
|
|
|
|
if (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { |
|
|
|
|
|
params.put("dateId", params.get("startTime").toString().replaceAll("-", "")); |
|
|
|
|
|
FactUserHouseResultDTO dtoStart = factGridUserHouseDailyService.getTotal(params); |
|
|
|
|
|
params.put("dateId", params.get("endTime").toString().replaceAll("-", "")); |
|
|
|
|
|
FactUserHouseResultDTO dtoEnd = factGridUserHouseDailyService.getTotal(params); |
|
|
|
|
|
dto = dtoEnd; |
|
|
|
|
|
dto.setHouseIncr(dtoEnd.getHouseIncr() - dtoStart.getHouseIncr()); |
|
|
|
|
|
dto.setHouseModify(dtoEnd.getHouseModify() - dtoStart.getHouseModify()); |
|
|
|
|
|
dto.setUserIncr(dtoEnd.getUserIncr() - dtoStart.getUserIncr()); |
|
|
|
|
|
dto.setUserModify(dtoEnd.getUserModify() - dtoStart.getUserModify()); |
|
|
} else { |
|
|
} else { |
|
|
params.put("dateId", DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
params.put("dateId", params.get("startTime").toString().replaceAll("-", "")); |
|
|
|
|
|
FactUserHouseResultDTO dtoStart = factAgencyUserHouseDailyService.getTotal(params); |
|
|
|
|
|
params.put("dateId", params.get("endTime").toString().replaceAll("-", "")); |
|
|
|
|
|
FactUserHouseResultDTO dtoEnd = factAgencyUserHouseDailyService.getTotal(params); |
|
|
|
|
|
dto = dtoEnd; |
|
|
|
|
|
dto.setHouseIncr(dtoEnd.getHouseIncr() - dtoStart.getHouseIncr()); |
|
|
|
|
|
dto.setHouseModify(dtoEnd.getHouseModify() - dtoStart.getHouseModify()); |
|
|
|
|
|
dto.setUserIncr(dtoEnd.getUserIncr() - dtoStart.getUserIncr()); |
|
|
|
|
|
dto.setUserModify(dtoEnd.getUserModify() - dtoStart.getUserModify()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
params.put("dateId", DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
params.put("dateId", DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
|
|
|
if (params.containsKey("level")) { |
|
|
|
|
|
if (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { |
|
|
|
|
|
dto = factGridUserHouseDailyService.getTotal(params); |
|
|
|
|
|
} else { |
|
|
|
|
|
dto = factAgencyUserHouseDailyService.getTotal(params); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
params.put("dateId", DateUtils.getBeforeNDay(NumConstant.ONE)); |
|
|
if (params.containsKey("level")) { |
|
|
if (params.containsKey("level")) { |
|
|
if (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { |
|
|
if (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { |
|
|
dto = factGridUserHouseDailyService.getTotal(params); |
|
|
dto = factGridUserHouseDailyService.getTotal(params); |
|
@ -87,6 +115,8 @@ public class FactUserHouseServiceImpl implements FactUserHouseService { |
|
|
dto = factAgencyUserHouseDailyService.getTotal(params); |
|
|
dto = factAgencyUserHouseDailyService.getTotal(params); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return dto; |
|
|
return dto; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|