package com.hzs.common.domain.member.account;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * 会员营业执照
 */
@Data
@Builder
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("CU_MEMBER_BUSINESS_LICENSE")
@KeySequence("CU_MEMBER_BUSINESS_LICENSE_SEQ")
public class CuMemberBusinessLicense extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private Long pkId;

    /**
     * 会员主键
     */
    @TableField("PK_MEMBER")
    private Long pkMember;

    /**
     * 营业执照名称
     */
    @TableField("LICENSE_NAME")
    private String licenseName;

    /**
     * 统一社会信用代码
     */
    @TableField("CREDIT_CODE")
    private String creditCode;

    /**
     * 法人姓名
     */
    @TableField("LEGAL_NAME")
    private String legalName;

    /**
     * 营业执照省
     */
    @TableField("LICENSE_PROVINCE")
    private Integer licenseProvince;

    /**
     * 营业执照市
     */
    @TableField("LICENSE_CITY")
    private Integer licenseCity;

    /**
     * 营业执照县
     */
    @TableField("LICENSE_COUNTY")
    private Integer licenseCounty;

    /**
     * 营业执照地址
     */
    @TableField("LICENSE_ADDRESS")
    private String licenseAddress;

    /**
     * 营业执照图片
     */
    @TableField("LICENSE_IMAGE")
    private String licenseImage;


    /**
     * 审核时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("APPROVE_TIME")
    private Date approveTime;

    /**
     * 审核状态（2=待审核，3=审核中，4=已驳回，5=已审核）
     */
    @TableField("APPROVE_STATUS")
    private Integer approveStatus;

    /**
     * 驳回原因
     */
    @TableField("REJECT_MSG")
    private String rejectMsg;

    /**
     * 业务单号
     */
    @TableField("BUSINESS_NO")
    private String businessNo;


}
