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; /** *
* 大屏-重点人员-网格人员 *
* * @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-2]\\\\d)|3[0-1])\\\\d{3}$)|(^[1-9]\\\\d{5}[1-9]\\\\d{3}((0\\\\d)|(1[0-2]))(([0-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; }