package com.tofly.third.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("YH_KHJBXX")
@ApiModel("用户基本信息")
public class YhKhjbxx extends Model<YhKhjbxx> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户编号")
    @TableId(value = "yhbh", type = IdType.INPUT)
    private String yhbh;

    @ApiModelProperty("原用户号")
    private String ykhbh;

    @ApiModelProperty("所属公司")
    //@TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String ssgs;

    @ApiModelProperty("所属抄表片区")
    //@TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String sscbpq;

    @ApiModelProperty("所属抄表本")
    //@TableField(updateStrategy = FieldStrategy.IGNORED, jdbcType = JdbcType.VARCHAR)
    private String sscbb;

    @ApiModelProperty("申请日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date sqrq;

    @ApiModelProperty("用户姓名")
    private String yhxm;

    @ApiModelProperty("用户地址")
    private String yhdz;

    @ApiModelProperty("联系电话")
    private String lxdh;

    @ApiModelProperty("用户数")
    private Long rks;

    @ApiModelProperty("性别（1男，2女，3未知）[sys_child_code,pcid='9']")
    private String xb;

    @ApiModelProperty("手机")
    private String sj;

    @ApiModelProperty("住宅电话")
    private String zzdh;

    @ApiModelProperty("工作单位")
    private String gzdw;

    @ApiModelProperty("办公电话")
    private String bgdh;

    @ApiModelProperty("电子邮箱")
    private String dzyx;

    @ApiModelProperty("证件类别(sys_child_code,pcid='10')")
    private String zjlb;

    @ApiModelProperty("证件号码")
    private String zjhm;

    @ApiModelProperty("与户主关系")
    private String hzgx;

    @ApiModelProperty("用户状态（0:申请用户,1:正式用户,2:报停用户,3:销户用户,4:作废用户）")
    private Integer yhzt;

    @ApiModelProperty("重视级别")
    private String zsjb;

    @ApiModelProperty("建档日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date jdrq;

    @ApiModelProperty("通水标志（0：未开通，1：已开通）")
    private String tsbz;

    @ApiModelProperty("通水日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date tsrq;

    @ApiModelProperty("合同签订")
    private String htqd;

    @ApiModelProperty("合同签订日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date htqdrq;

    @ApiModelProperty("合同编号")
    private String htbh;

    @ApiModelProperty("备注")
    private String bz;

    @ApiModelProperty("报装_工程编号")
    private String bzGcbh;

    @ApiModelProperty("报装_批次序列号")
    private String bzPcxlh;

    @ApiModelProperty("操作人员编码")
    private String czrybm;

    @ApiModelProperty("操作人员姓名")
    private String czryxm;

    @ApiModelProperty("操作时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date czsj;

    @ApiModelProperty("身份证图片")
    private String psfz;

    @ApiModelProperty("合同图片")
    private String pht;

    @ApiModelProperty("工商执照图片")
    private String pgszz;

    @ApiModelProperty("房产证图片")
    private String pfcz;

    @ApiModelProperty("营业执照图片")
    private String pyyzz;

    @ApiModelProperty("有效证件图片")
    private String pyxzj;

    @ApiModelProperty("信用等级（sys_child_code,pcid='20'）")
    private String xydj;

    @ApiModelProperty("是否特困户（1是，0否）")
    private String tkhbz;

    @ApiModelProperty("职位")
    private String zw;

    @ApiModelProperty("建档人员编码")
    private String jdrybm;

    @ApiModelProperty("建档人员姓名")
    private String jdryxm;

    @ApiModelProperty("建档批次序列号")
    private String jdpcxlh;

    @ApiModelProperty("发票类型: 0-手册，1-普票，2-专票，3-收据")
    private String fplx;

    @ApiModelProperty("是否取整")
    private String sfqz;

    @ApiModelProperty("抄表人员姓名")
    private String cbryxm;

    private Long xh;

    @ApiModelProperty("所属行政规划")
    private String ssregion;

    @ApiModelProperty("修改人员")
    private String xgrybm;

    @ApiModelProperty("发票开具姓名")
    private String fpName;

    @ApiModelProperty("发票开具纳税人识别号")
    private String fpNsrsbh;

    @ApiModelProperty("发票开具地址")
    private String fpDz;

    @ApiModelProperty("发票开具联系电话")
    private String fpLxdh;

    @ApiModelProperty("发票开具开户行")
    private String fpBankname;

    @ApiModelProperty("发票开具银行账号")
    private String fpBankcode;

    @ApiModelProperty("发票开具备注")
    private String fpBz;

    @ApiModelProperty("收费方式")
    private String fffs;

    @ApiModelProperty("年度累计量")
    private BigDecimal jtzqljl;

    @ApiModelProperty("客户类型（弱势群体，残疾，正常，低保，企业，服务）")
    private String khlb;

    @ApiModelProperty("拼音简码")
    private String pyjm;

    @ApiModelProperty("月累积量")
    private BigDecimal yljl;

    @ApiModelProperty("水表数量")
    private Integer sbsl;

    @ApiModelProperty("是否开票")
    private String sfkp;

    @ApiModelProperty("是否免税")
    private String sfms;

    @ApiModelProperty("推送方式-1不推送，0邮箱1手机2邮箱、手机")
    private String pushmode;

    @ApiModelProperty("购方邮箱")
    private String email;

    @ApiModelProperty("低保户年度累计量")
    private BigDecimal dbhndljl;

    @ApiModelProperty("客户编码")
    private String khbm;

    @ApiModelProperty("大小户 0-小户 1-大户")
    private Integer dxh;

    @ApiModelProperty("主户标志(大户下有多个水表，主户是用于统一收费、开票信息的唯一对象) 0-否 1-是")
    private Integer zhbz;

    @ApiModelProperty("曾用名,多个曾用名用','分隔")
    private String cym;

    @ApiModelProperty("用水地址")
    private String ysdz;
}
