CeDo
2021-05-26 32e138c5a0afe37a27e23131698eb90707cbae98
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
package com.panzhihua.common.model.dtos.grid;
 
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.NotBlank;
import javax.validation.constraints.Pattern;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.google.common.base.CaseFormat;
 
/**
 * 分页查询表单
 *
 * @author cedoo email:cedoo(a)qq.com
 * @version 1.0
 * @since 1.0
 * @date 2021-05-26
 * */
@Data
@ApiModel("查询区县/街道/社区/网格员网格数据管理请求参数")
public class PageEventGridDataDTO {
 
    @ApiModelProperty(value = "分页-当前页数", example = "1")
    private Long pageNum = 1L;
 
    @ApiModelProperty(value = "分页-每页记录数", example = "10")
    private Long pageSize = 10L;
 
    @ApiModelProperty(value = "排序字段, 默认createAt", example = "createAt")
    private String sortAttr="createAt";
 
    @ApiModelProperty(value = "排序方式: asc/desc(默认)", example = "desc")
    @Pattern(regexp = "asc|desc|ASC|DESC")
    private String sortType="desc";
 
    public String getSortColumns(){
        String dbColumn = CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, sortAttr);
        return dbColumn;
    }
 
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "主键ID", hidden = false, example = "1")
    private Long id;
 
 
    @NotNull() @Max(9223372036854775807L)
    @ApiModelProperty(value = "类型,1、区县网格2街道网格3社区网格", hidden = false, example = "1")
    private Long type;
 
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "区/县ID", hidden = false, example = "1")
    private Long zoneId;
 
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "网格所属街道", hidden = false, example = "1")
    private Long gridStreetId;
 
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "网格所属社区ID", hidden = false, example = "1")
    private Long gridCommunityId;
 
 
    @NotBlank() @Length(max=100)
    @ApiModelProperty(value = "网格名称", hidden = false, example = "")
    private String gridName;
 
 
    @Max(32767)
    @ApiModelProperty(value = "所属图层", hidden = false, example = "1")
    private Integer mapLevel;
 
 
    @Length(max=100)
    @ApiModelProperty(value = "面积", hidden = false, example = "")
    private String area;
 
 
    @Length(max=100)
    @ApiModelProperty(value = "线条颜色", hidden = false, example = "")
    private String lineColor;
 
 
    @Length(max=100)
    @ApiModelProperty(value = "线条宽度", hidden = false, example = "")
    private String lineBroadband;
 
 
    @Length(max=100)
    @ApiModelProperty(value = "填充颜色", hidden = false, example = "")
    private String fillColor;
 
 
    @Length(max=255)
    @ApiModelProperty(value = "备注", hidden = false, example = "")
    private String remarks;
 
 
    @Length(max=2147483647)
    @ApiModelProperty(value = "围栏数据", hidden = false, example = "")
    private String data;
 
 
    @NotNull() @Max(9223372036854775807L)
    @ApiModelProperty(value = "创建人", hidden = false, example = "1")
    private Long createBy;
 
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间-开始时间", hidden = false, example = "2021-05-01 18:05:50")
    private Date createAtBegin;
    @ApiModelProperty(value = "创建时间-结束时间", hidden = false, example = "2021-05-01 18:05:50")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createAtEnd;
 
 
    @Max(9223372036854775807L)
    @ApiModelProperty(value = "修改人", hidden = false, example = "1")
    private Long updateBy;
 
 
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间-开始时间", hidden = false, example = "2021-05-01 18:05:50")
    private Date updateAtBegin;
    @ApiModelProperty(value = "修改时间-结束时间", hidden = false, example = "2021-05-01 18:05:50")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateAtEnd;
 
 
    @ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1")
    private Long userId;
 
}