package com.hzs.common.domain.ground.margin;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.hzs.common.core.web.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 保证金缴纳
 * </p>
 *
 * @author hzs
 * @since 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@KeySequence("TH_MARGIN_SEQ")
@TableName("TH_MARGIN")
public class ThMargin extends BaseEntity {

    private static final long serialVersionUID = 1L;

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

    /**
     * 缴纳供应商
     */
    @TableField("PK_SUPPLIER")
    private Integer pkSupplier;

    /**
     * 缴纳日期
     */
    @TableField("BILL_DATE")
    private Date billDate;

    /**
     * 销售类型 引用现在销售大类
     */
    @TableField("SALE_TYPE")
    private Integer saleType;

    /**
     * 销售范围
     */
    @TableField("SALE_SCOPE")
    private Integer saleScope;

    /**
     * 联系电话
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 联系人
     */
    @TableField("LINK_MAN")
    private String linkMan;

    /**
     * 保证金金额
     */
    @TableField("MARGIN")
    private BigDecimal margin;

    /**
     * 审批业务类型 来源枚举 EApprovalBusiness
     */
    @TableField("EDIT_TYPE")
    private Integer editType;

    /**
     * 审核状态 来源枚举 EApproveStatus
     */
    @TableField("APPROVE_STATUS")
    private Integer approveStatus;

    @TableField("TH_BUSINESS_CODE")
    private String thBusinessCode;





}
