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