12 changed files with 207 additions and 19 deletions
@ -0,0 +1,68 @@ |
|||
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; |
|||
|
|||
/** |
|||
* 社区治理可视化分析 |
|||
* 事件分类分析-饼1入参 |
|||
*/ |
|||
@Data |
|||
public class IcEventCategoryAnalysisFormDTO { |
|||
|
|||
/** |
|||
* 处理状态比例查询 |
|||
*/ |
|||
public interface TotalPie { |
|||
} |
|||
|
|||
/** |
|||
* 要查询的组织ID |
|||
*/ |
|||
@NotBlank(message = "组织ID为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class}) |
|||
private String orgId; |
|||
|
|||
/** |
|||
* 组织类型。grid,agency |
|||
*/ |
|||
@NotBlank(message = "组织类型为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class}) |
|||
private String orgType; |
|||
|
|||
/** |
|||
* 查询起始时间 yyyy-MM-dd |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@NotNull(message = "查询时间为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class}) |
|||
private Date queryStartTime; |
|||
|
|||
/** |
|||
* 查询截止时间 yyyy-MM-dd |
|||
*/ |
|||
@DateTimeFormat(pattern = "yyyy-MM-dd") |
|||
@JsonFormat(pattern = "yyyy-MM-dd") |
|||
@NotNull(message = "查询时间为必填项", groups = {IcEventCategoryAnalysisFormDTO.TotalPie.class}) |
|||
private Date queryEndTime; |
|||
|
|||
/** |
|||
* 一级分类 code长度 |
|||
*/ |
|||
private Integer categoryOneLength; |
|||
|
|||
//以下参数从token中获取
|
|||
/** |
|||
* 当前登录用户 |
|||
*/ |
|||
private String staffId; |
|||
|
|||
/** |
|||
* 当前客户id |
|||
*/ |
|||
private String customerId; |
|||
|
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.epmet.dto.result; |
|||
|
|||
import lombok.Data; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
/** |
|||
* 社区治理可视化分析 |
|||
* 事件分类分析-饼1 |
|||
*/ |
|||
@Data |
|||
public class IcEventCategoryAnalysisResDTO implements Serializable { |
|||
//一级分类Code
|
|||
private String categoryCode; |
|||
//一级分类名称
|
|||
private String categoryName; |
|||
//一级分类颜色
|
|||
private String color = ""; |
|||
//分类下项目总数
|
|||
private Integer total = 0; |
|||
} |
Loading…
Reference in new issue