From 177249c76aeea0b4bf8d8816d4994e3b445b45ce Mon Sep 17 00:00:00 2001
From: huanghongfa <huanghongfa123456>
Date: 星期四, 02 九月 2021 10:39:34 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/zzj' into zzj

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/PageEventManageDTO.java |   42 +++++++++++++-----------------------------
 1 files changed, 13 insertions(+), 29 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/PageEventManageDTO.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/PageEventManageDTO.java
index 457e7f0..0b873ce 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/PageEventManageDTO.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/model/dtos/grid/PageEventManageDTO.java
@@ -1,16 +1,13 @@
 package com.panzhihua.common.model.dtos.grid;
 
-import com.fasterxml.jackson.annotation.JsonFormat;
+import javax.validation.constraints.Max;
+import javax.validation.constraints.Pattern;
+
 import com.google.common.base.CaseFormat;
+
 import io.swagger.annotations.ApiModel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
-import org.hibernate.validator.constraints.Length;
-
-import javax.validation.constraints.Max;
-import javax.validation.constraints.NotNull;
-import javax.validation.constraints.Pattern;
-import java.util.Date;
 
 /**
  * 事件管理分页查询表单
@@ -19,7 +16,7 @@
  * @version 1.0
  * @since 1.0
  * @date 2021-05-26
- * */
+ */
 @Data
 @ApiModel("查询事件请求参数")
 public class PageEventManageDTO {
@@ -31,59 +28,46 @@
     private Long pageSize = 10L;
 
     @ApiModelProperty(value = "排序字段, 默认createAt", example = "createAt")
-    private String sortAttr="createAt";
+    private String sortAttr = "createAt";
 
     @ApiModelProperty(value = "排序方式: asc/desc(默认)", example = "desc")
     @Pattern(regexp = "asc|desc|ASC|DESC", message = "排序方式参数错误")
-    private String sortType="desc";
-
-    public String getSortColumns(){
-        String dbColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortAttr);
-        return dbColumn;
-    }
-
+    private String sortType = "desc";
     @ApiModelProperty(value = "撤销类型 1 网格员 2 社区", hidden = true, example = "1")
     private Integer revokeType;
-
     @ApiModelProperty(value = "搜索关键词", hidden = false, example = "1", required = true)
     private String keyWord;
-
     @ApiModelProperty(value = "上报社区处理: 0 否 1 是", hidden = false, example = "1")
     private Integer communityProcess;
-
     @Max(value = 6, message = "事件处理状态参数错误")
     @ApiModelProperty(value = "事件处理状态(为空时查询全部):1 待处理、2 待验证、4 已解决、6 已失效", hidden = false, example = "1")
     private Integer eventDealStatus;
-
     @Max(127)
     @ApiModelProperty(value = "事件分类:1治安隐患、2公共服务、3矛盾纠纷、4不稳定因素、5突发事件", hidden = false, example = "1")
-    //@NotNull(message = "事件分类不能为空")
+    // @NotNull(message = "事件分类不能为空")
     private Integer eventType;
-
     @Max(127)
     @ApiModelProperty(value = "危险级别", hidden = false, example = "1")
     private Integer dangerLevel;
-
     @ApiModelProperty(value = "是否紧急", hidden = false, example = "true")
     private Boolean urgent;
-
     @ApiModelProperty(value = "是否重大", hidden = false, example = "true")
     private Boolean major;
-
     @ApiModelProperty(value = "红牌", hidden = false, example = "true")
     private Boolean redCard;
-
     @ApiModelProperty(value = "黄牌", hidden = false, example = "true")
     private Boolean yellowCard;
-
     @ApiModelProperty(value = "是否有效", hidden = false, example = "true")
     private Boolean invalid;
-
-
     @ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1")
     private Long userId;
     @Max(9223372036854775807L)
     @ApiModelProperty(value = "社区ID", hidden = true, example = "1")
     private Long communityId;
 
+    public String getSortColumns() {
+        String dbColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortAttr);
+        return dbColumn;
+    }
+
 }

--
Gitblit v1.7.1