package easydo.technology.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import easydo.technology.annotation.NotTableField;
import easydo.technology.annotations.ZSFContainer;
import easydo.technology.annotations.ZSFContainers;
import easydo.technology.annotations.ZSFLinkField;
import easydo.technology.core.ZeroSpringFolder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.List;

@Data
@EqualsAndHashCode(callSuper = true)
@ZSFContainers({
        @ZSFContainer(directory = "supplier/attach", maxLimit = 10)
})
public class Supplier extends ZeroSpringFolder<Supplier> {
    @ZSFLinkField
    private String id;
    private String supplierName;
    private String supplierNo;
    private String createTime;
    private String updateTime;
    private String supplierTypeId;
    private String creditCode;
    private String contactName;
    private String establishDate;
    private Long deptId;
    private BigDecimal registerAmount;
    private String companyType;
    private String contactPhone;
    private String businessScope;
    private String address;
    private String remark;
    private String deptCode;

    private String contactIdCard;
    private String licenceDate;
    private String region;
    private String city;
    private String province;
    private String postcode;
    private String telephone;
    private String provinceCode;
    private String cityCode;
    private String regionCode;
    private String nature;
    private Boolean isCustomer;

    @NotTableField
    private Integer bidCount;
    @NotTableField
    private BigDecimal totalAmount;
    @NotTableField
    private List<SupplierBank> bankList;
}
