| 
					
				 | 
			
			
				@@ -111,9 +111,8 @@ public class SecSupplyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //本日供水量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         deviceParmEntity.setParmType(3);//查询供水量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<DeviceParmEntity> deviceParms = deviceParmService.selectDeviceBySceneIdAndType(deviceParmEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        //瞬时流量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         double dayAmount = 0d; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        for (DeviceParmEntity item : deviceParmEntities) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        for (DeviceParmEntity item : deviceParms) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             //取缓存里的数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             byte[] bytes = redisUtil.get(("sms_water_" + item.getDeviceCode()).getBytes()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (bytes != null && bytes.length > 0) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -125,6 +124,7 @@ public class SecSupplyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     map.put(dateValue.getAttributeId(), dateValue); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (map.containsKey(item.getAttributeId().longValue())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     DayReportEntity dayReportEntity = new DayReportEntity(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     dayReportEntity.setYear(begin.get(Calendar.YEAR)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     dayReportEntity.setMonth(begin.get(Calendar.MONTH) + 1); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -134,6 +134,7 @@ public class SecSupplyService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     List<DayReportEntity> dayReportEntities = dayReportService.findDeviceLastDayValue(dayReportEntity); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (dayReportEntities.size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         dayAmount += map.get(item.getAttributeId().longValue()).getDataValue(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        System.out.println("item.getAttributeId()"+item.getAttributeId()+"--"+map.get(item.getAttributeId().longValue())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         dayAmount = dayAmount - dayReportEntities.get(0).getLatestValue(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 |