liujie
2025-12-29 5ca4dbed191c98f121b9d493d943e72ab8a3645e
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
package com.ruoyi.system.model;
 
import com.baomidou.mybatisplus.annotation.*;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
 
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.time.LocalDateTime;
 
/**
 * <p>
 * 大屏-重点人员-网格人员
 * </p>
 *
 * @author xiaochen
 * @since 2025-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_large_key_grid_user")
@ApiModel(value="TLargeKeyGridUser对象", description="大屏-重点人员-网格人员")
public class TLargeKeyGridUser extends BaseModel {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
 
    @Length(max = 40,message = "网格不能超过40个字符")
    @ApiModelProperty(value = "网格")
    @TableField("grid_info")
    private String gridInfo;
 
    @Length(max = 40,message = "小区名称不能超过40个字符")
    @ApiModelProperty(value = "小区名称")
    @TableField("community_name")
    private String communityName;
 
    @Length(max = 100,message = "楼栋信息不能超过100个字符")
    @ApiModelProperty(value = "楼栋信息")
    @TableField("building_info")
    private String buildingInfo;
 
    @Length(max = 40,message = "单元号不能超过40个字符")
    @ApiModelProperty(value = "单元号")
    @TableField("unit_number")
    private String unitNumber;
 
    @Length(max = 40,message = "门牌号不能超过40个字符")
    @ApiModelProperty(value = "门牌号")
    @TableField("house_number")
    private String houseNumber;
 
    @Length(max = 20,message = "姓名不能超过20个字符")
    @ApiModelProperty(value = "姓名")
    @TableField("user_name")
    private String userName;
 
    @ApiModelProperty(value = "性别 1=男 2=女")
    @TableField("user_sex")
    private Integer userSex;
 
    @Pattern(regexp = "^$|(^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$)|(^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])((\\d{4})|\\d{3}[Xx])$)",message = "身份证号格式不正确")
    @ApiModelProperty(value = "身份证号")
    @TableField("id_card")
    private String idCard;
 
    @Pattern(regexp = "^$|^1[3-9]\\d{9}$",message = "手机号格式不正确")
    @ApiModelProperty(value = "联系电话")
    @TableField("contact_number")
    private String contactNumber;
 
    @ApiModelProperty(value = "类型id")
    @TableField("type_id")
    private String typeId;
 
    @ApiModelProperty(value = "人员类型 1=重点人员 2=网格人员")
    @TableField("user_type")
    private Integer userType;
 
}