8 changed files with 211 additions and 2 deletions
			
			
		| @ -0,0 +1,50 @@ | |||||
|  | package com.epmet.dto.form; | ||||
|  | 
 | ||||
|  | import com.fasterxml.jackson.annotation.JsonFormat; | ||||
|  | import lombok.Data; | ||||
|  | import org.springframework.format.annotation.DateTimeFormat; | ||||
|  | 
 | ||||
|  | import javax.validation.constraints.NotBlank; | ||||
|  | import javax.validation.constraints.NotNull; | ||||
|  | import java.util.Date; | ||||
|  | 
 | ||||
|  | /** | ||||
|  |  * 事件处理分析通用 | ||||
|  |  */ | ||||
|  | @Data | ||||
|  | public class EventProcessAnalysisCommonFormDTO { | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 处理状态比例查询 | ||||
|  |      */ | ||||
|  |     public interface ProcessStatusRatioQuery {} | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 要查询的组织ID | ||||
|  |      */ | ||||
|  |     @NotBlank(message = "组织ID为必填项", groups = { ProcessStatusRatioQuery.class }) | ||||
|  |     private String orgId; | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 组织类型。grid,agency | ||||
|  |      */ | ||||
|  |     @NotBlank(message = "组织类型为必填项", groups = { ProcessStatusRatioQuery.class }) | ||||
|  |     private String orgType; | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 查询起始时间 yyyy-MM-dd | ||||
|  |      */ | ||||
|  |     @DateTimeFormat(pattern = "yyyy-MM-dd") | ||||
|  |     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|  |     @NotNull(message = "查询时间为必填项", groups = { ProcessStatusRatioQuery.class }) | ||||
|  |     private Date queryStartTime; | ||||
|  | 
 | ||||
|  |     /** | ||||
|  |      * 查询截止时间 yyyy-MM-dd | ||||
|  |      */ | ||||
|  |     @DateTimeFormat(pattern = "yyyy-MM-dd") | ||||
|  |     @JsonFormat(pattern = "yyyy-MM-dd") | ||||
|  |     @NotNull(message = "查询时间为必填项", groups = { ProcessStatusRatioQuery.class }) | ||||
|  |     private Date queryEndTime; | ||||
|  | 
 | ||||
|  | } | ||||
| @ -1,3 +1,7 @@ | |||||
| package com.epmet.dto.result; | package com.epmet.dto.result; | ||||
| 
 | 
 | ||||
|  | import java.io.Serializable; | ||||
|  | 
 | ||||
| public class IcEventListResultDTO implements Serializable { | public class IcEventListResultDTO implements Serializable { | ||||
|  | 
 | ||||
|  | } | ||||
|  | |||||
| @ -0,0 +1,11 @@ | |||||
|  | package com.epmet.dto.result; | ||||
|  | 
 | ||||
|  | import lombok.Data; | ||||
|  | 
 | ||||
|  | @Data | ||||
|  | public class ProcessStatusRatioResultDTO { | ||||
|  |     private Long processingCount; | ||||
|  |     private Long closedCount; | ||||
|  |     private Double processingRatio; | ||||
|  |     private Double closedRatio; | ||||
|  | } | ||||
					Loading…
					
					
				
		Reference in new issue