8 changed files with 268 additions and 0 deletions
@ -0,0 +1,52 @@ |
|||||
|
package com.epmet.dto.form.project; |
||||
|
|
||||
|
import lombok.Data; |
||||
|
|
||||
|
import javax.validation.constraints.NotBlank; |
||||
|
import javax.validation.constraints.NotNull; |
||||
|
import java.io.Serializable; |
||||
|
|
||||
|
/** |
||||
|
* 群众不满列表查询入参DTO,从指标库取值 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/6/24 10:55 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MassesDiscontentFormV2DTO implements Serializable { |
||||
|
public interface MassesDiscontentFormV2 { |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 时间区间,三个月:threeMonth;半年:sixMonth;一年:twelveMonth |
||||
|
* 一个月按照30天,三个月90天,半年180天,一年365天 |
||||
|
*/ |
||||
|
@NotBlank(message = "timeSection不能为空,取值:三个月:threeMonth;半年:sixMonth;一年:twelveMonth", groups = MassesDiscontentFormV2.class) |
||||
|
private String timeSection; |
||||
|
|
||||
|
/** |
||||
|
* asc:分数由低到高 |
||||
|
* desc:分数由高到低 |
||||
|
*/ |
||||
|
@NotBlank(message = "sortType不能为空,取值:asc:分数由低到高;desc:分数由高到低", groups = MassesDiscontentFormV2.class) |
||||
|
private String sortType; |
||||
|
|
||||
|
/** |
||||
|
* 组织ID |
||||
|
*/ |
||||
|
@NotBlank(message = "agencyId不能为空", groups = MassesDiscontentFormV2.class) |
||||
|
private String agencyId; |
||||
|
|
||||
|
@NotNull(message = "pageNo不能为空", groups = MassesDiscontentFormV2.class) |
||||
|
private Integer pageNo; |
||||
|
|
||||
|
@NotNull(message = "pageSize不能为空", groups = MassesDiscontentFormV2.class) |
||||
|
private Integer pageSize; |
||||
|
|
||||
|
private String areaCode; |
||||
|
|
||||
|
//以下属性无需前端传入
|
||||
|
|
||||
|
private String startDate; |
||||
|
private String endDate; |
||||
|
} |
||||
@ -0,0 +1,69 @@ |
|||||
|
package com.epmet.dto.result.project; |
||||
|
|
||||
|
import com.fasterxml.jackson.annotation.JsonIgnore; |
||||
|
import lombok.Data; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.math.BigDecimal; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
|
||||
|
/** |
||||
|
* 群众不满列表查询返参DTO,从指标库取值 |
||||
|
* |
||||
|
* @author yinzuomei@elink-cn.com |
||||
|
* @date 2021/6/24 11:02 |
||||
|
*/ |
||||
|
@Data |
||||
|
public class MassesDiscontentResultV2DTO implements Serializable { |
||||
|
private static final long serialVersionUID = 403953150174574960L; |
||||
|
/** |
||||
|
* 项目ID |
||||
|
*/ |
||||
|
private String projectId; |
||||
|
|
||||
|
/** |
||||
|
* 议题ID |
||||
|
*/ |
||||
|
private String issueId; |
||||
|
|
||||
|
/** |
||||
|
* 话题所在网格 |
||||
|
*/ |
||||
|
private String gridName; |
||||
|
|
||||
|
/** |
||||
|
* 话题图片 |
||||
|
*/ |
||||
|
private List<String> photos; |
||||
|
|
||||
|
/** |
||||
|
* 话题内容 |
||||
|
*/ |
||||
|
private String topicContent; |
||||
|
|
||||
|
/** |
||||
|
* 项目分类标签 |
||||
|
*/ |
||||
|
private String projectCategory; |
||||
|
|
||||
|
/** |
||||
|
* 项目评价分数 |
||||
|
* 直接取整数位展示 |
||||
|
*/ |
||||
|
private BigDecimal score; |
||||
|
|
||||
|
@JsonIgnore |
||||
|
private String customerId; |
||||
|
@JsonIgnore |
||||
|
private String parentAgencyId; |
||||
|
@JsonIgnore |
||||
|
private String areaCode; |
||||
|
|
||||
|
public MassesDiscontentResultV2DTO() { |
||||
|
this.gridName = ""; |
||||
|
this.photos = new ArrayList<>(); |
||||
|
this.topicContent = ""; |
||||
|
this.projectCategory = ""; |
||||
|
} |
||||
|
} |
||||
Loading…
Reference in new issue