| 
					
				 | 
			
			
				@@ -1,5 +1,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 package com.bz.zoneiot.water.api.dto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.bz.zoneiot.core.utils.DateUtil; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.fasterxml.jackson.annotation.JsonFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiModel; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiModelProperty; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -8,6 +9,7 @@ import org.apache.commons.lang3.StringUtils; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.io.Serializable; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import java.time.LocalDateTime; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import java.util.Date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @description 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -32,12 +34,22 @@ public class MonitorDataChartReportValueDto implements  Comparable<MonitorDataCh 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiModelProperty("日期时间") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private LocalDateTime date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @ApiModelProperty("日期时间") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private Date dateFormat; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Override 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     public int compareTo(MonitorDataChartReportValueDto o) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return toInt(this.getDateStringLabel()) - toInt(o.getDateStringLabel()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    public LocalDateTime getDate(){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (date == null && dateFormat != null) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            return DateUtil.asLocalDateTime(dateFormat); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return date; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private int toInt(String str ){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (StringUtils.isEmpty(str)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             str = "0"; 
			 |