mitao
2025-03-24 e9573dc619e9a1e17d511c5ea4ab461919955be2
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
package com.ruoyi.system.model;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
 
/**
 * <p>
 * 租户
 * </p>
 *
 * @author xiaochen
 * @since 2025-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_tenant")
@ApiModel(value="TTenant对象", description="租户")
public class TTenant extends BaseModel {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
 
    @ApiModelProperty(value = "住户名称")
    @NotBlank(message = "住户名称不能为空")
    @TableField("resident_name")
    private String residentName;
 
    @ApiModelProperty(value = "入住时间")
    @NotNull(message = "入住时间不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @TableField("checkIn_time")
    private LocalDate checkinTime;
 
    @ApiModelProperty(value = "租户属性")
    @TableField("tenant_attributes")
    private String tenantAttributes;
 
    @ApiModelProperty(value = "租户类型")
    @TableField("tenant_type")
    private String tenantType;
 
    @ApiModelProperty(value = "联系电话")
    @NotBlank(message = "联系电话不能为空")
    @TableField("phone")
    private String phone;
 
    @ApiModelProperty(value = "证件号码")
    @NotBlank(message = "证件号码不能为空")
    @TableField("id_card")
    private String idCard;
 
    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;
 
    @ApiModelProperty(value = "银行转账专号")
    @NotBlank(message = "银行转账专号不能为空")
    @TableField("bank_number")
    private String bankNumber;
 
    @ApiModelProperty(value = "通讯地址")
    @TableField("mail_address")
    private String mailAddress;
 
    @ApiModelProperty(value = "登录账号")
    @NotBlank(message = "登录账号不能为空")
    @TableField("account")
    private String account;
 
    @ApiModelProperty(value = "登录密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "微信openid")
    @TableField("open_id")
    private String openId;
 
    @ApiModelProperty(value = "法人")
    @TableField("legal_person")
    private String legalPerson;
 
    @ApiModelProperty(value = "社会统一信用代码")
    @TableField("credit_code")
    private String creditCode;
 
    @ApiModelProperty(value = "开户行")
    @TableField("bank_name")
    private String bankName;
 
}