|  |  | @ -686,8 +686,7 @@ public class ReportServiceImpl implements ReportService { | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |     private Double generate(int type,String deviceCode,double ride) { |  |  |  |     private Double generate(int type,String deviceCode,double ride) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Calendar calendar = Calendar.getInstance(); |  |  |  |         Calendar calendar = Calendar.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.setTime(DateUtil.parse("2024-01-01 00:00:00",DateUtil.PATTERN_DATETIME)); |  |  |  |         calendar.setTime(new Date()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //calendar.setTime(new Date());
 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         String end = null,start = null; |  |  |  |         String end = null,start = null; | 
			
		
	
		
		
			
				
					
					|  |  |  |         int cycleType = 5; |  |  |  |         int cycleType = 5; | 
			
		
	
		
		
			
				
					
					|  |  |  |         switch (type){ |  |  |  |         switch (type){ | 
			
		
	
	
		
		
			
				
					|  |  | @ -723,8 +722,7 @@ public class ReportServiceImpl implements ReportService { | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |     private Double planGenerate(int type, String stationCode,List<PlanGenerationEntity> plans) { |  |  |  |     private Double planGenerate(int type, String stationCode,List<PlanGenerationEntity> plans) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Calendar calendar = Calendar.getInstance(); |  |  |  |         Calendar calendar = Calendar.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.setTime(DateUtil.parse("2024-01-01 00:00:00",DateUtil.PATTERN_DATETIME)); |  |  |  |         calendar.setTime(new Date()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //calendar.setTime(new Date());
 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         if(type == 0){ |  |  |  |         if(type == 0){ | 
			
		
	
		
		
			
				
					
					|  |  |  |             calendar.add(Calendar.DAY_OF_MONTH,-1); |  |  |  |             calendar.add(Calendar.DAY_OF_MONTH,-1); | 
			
		
	
		
		
			
				
					
					|  |  |  |             calendar.add(Calendar.HOUR_OF_DAY,-calendar.get(Calendar.HOUR_OF_DAY) + 1); |  |  |  |             calendar.add(Calendar.HOUR_OF_DAY,-calendar.get(Calendar.HOUR_OF_DAY) + 1); | 
			
		
	
	
		
		
			
				
					|  |  | @ -761,8 +759,7 @@ public class ReportServiceImpl implements ReportService { | 
			
		
	
		
		
			
				
					
					|  |  |  |         // 确定查询时间范围: 年、月
 |  |  |  |         // 确定查询时间范围: 年、月
 | 
			
		
	
		
		
			
				
					
					|  |  |  |         Date startDate,endDate; |  |  |  |         Date startDate,endDate; | 
			
		
	
		
		
			
				
					
					|  |  |  |         Calendar calendar = Calendar.getInstance(); |  |  |  |         Calendar calendar = Calendar.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.setTime(DateUtil.parse("2024-01-01 00:00:00",DateUtil.PATTERN_DATETIME)); |  |  |  |         calendar.setTime(new Date()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         //calendar.setTime(new Date());
 |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         endDate = calendar.getTime(); |  |  |  |         endDate = calendar.getTime(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.MONTH, -calendar.get(Calendar.MONTH)); |  |  |  |         calendar.add(Calendar.MONTH, -calendar.get(Calendar.MONTH)); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.DATE, -calendar.get(Calendar.DATE) + 1); |  |  |  |         calendar.add(Calendar.DATE, -calendar.get(Calendar.DATE) + 1); | 
			
		
	
	
		
		
			
				
					|  |  | @ -835,7 +832,7 @@ public class ReportServiceImpl implements ReportService { | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |     private String alarmData(String code) { |  |  |  |     private String alarmData(String code) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Calendar calendar = Calendar.getInstance(); |  |  |  |         Calendar calendar = Calendar.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.setTime(DateUtil.parse("2024-01-01 00:00:00",DateUtil.PATTERN_DATETIME)); |  |  |  |         calendar.setTime(new Date()); | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.DAY_OF_MONTH,-1); |  |  |  |         calendar.add(Calendar.DAY_OF_MONTH,-1); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String end = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); |  |  |  |         String end = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.MONTH,-1); |  |  |  |         calendar.add(Calendar.MONTH,-1); | 
			
		
	
	
		
		
			
				
					|  |  | @ -942,8 +939,7 @@ public class ReportServiceImpl implements ReportService { | 
			
		
	
		
		
			
				
					
					|  |  |  |      */ |  |  |  |      */ | 
			
		
	
		
		
			
				
					
					|  |  |  |     private List<EchartVo> curve(List<AttributeVo> attributes, String deviceCode) { |  |  |  |     private List<EchartVo> curve(List<AttributeVo> attributes, String deviceCode) { | 
			
		
	
		
		
			
				
					
					|  |  |  |         Calendar calendar = Calendar.getInstance(); |  |  |  |         Calendar calendar = Calendar.getInstance(); | 
			
		
	
		
		
			
				
					
					|  |  |  |         //calendar.setTime(new Date());
 |  |  |  |         calendar.setTime(new Date()); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.setTime(DateUtil.parse("2024-01-01 00:00:00",DateUtil.PATTERN_DATETIME)); |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.DAY_OF_MONTH,-1); |  |  |  |         calendar.add(Calendar.DAY_OF_MONTH,-1); | 
			
		
	
		
		
			
				
					
					|  |  |  |         String end = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); |  |  |  |         String end = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); | 
			
		
	
		
		
			
				
					
					|  |  |  |         calendar.add(Calendar.MONTH,-1); |  |  |  |         calendar.add(Calendar.MONTH,-1); | 
			
		
	
	
		
		
			
				
					|  |  | 
 |