package com.jeeplus.psimanage.dishManage.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jeeplus.core.domain.BaseEntity;
import lombok.Data;

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

/**
 * 挂账人信息登记
 */
@Data
@TableName("psi_credit_customer")
public class PsiCreditCustomer extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String customerName;

    private String mobile;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date birthday;

    private String idCard;

    private Integer age;

    private String occupation;

    private String companyName;

    private String address;

    private String emergencyContact;

    private String emergencyContactPhone;

    private String invoiceTitle;

    private String taxNo;

    private String bankName;

    private String bankAccount;

    private String invoiceAddressPhone;

    /**
     * 挂账状态：1正常挂账，2暂停挂账，3黑名单
     */
    private String creditStatus;

    private BigDecimal totalArrearsAmount;

    private Integer unsettledBillCount;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date firstCreditTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastConsumeTime;

    private String auditorId;

    private String status;

    private String remarks;

    @TableField(exist = false)
    private String createName;

    @TableField(exist = false)
    private String auditorName;
}
