| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -73,20 +73,50 @@ public class FactUserHouseServiceImpl implements FactUserHouseService { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        FactUserHouseResultDTO dto = null; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        if (params.containsKey("startTime") && params.containsKey("endTime")) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            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 { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                        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 { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                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 (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                dto = factGridUserHouseDailyService.getTotal(params); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                dto = factAgencyUserHouseDailyService.getTotal(params); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            if (params.containsKey("level")) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                if (OrgLevelEnum.GRID.getCode().equals(params.get("level").toString())) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto = factGridUserHouseDailyService.getTotal(params); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } else { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                    dto = factAgencyUserHouseDailyService.getTotal(params); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        return dto; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |