package com.dk.mdm.model.response.mst;


        import cn.afterturn.easypoi.excel.annotation.Excel;
        import com.baomidou.mybatisplus.annotation.*;
        import java.io.Serializable;

        import com.dk.common.infrastructure.annotaiton.ExportTitle;
        import com.dk.common.infrastructure.handler.*;
        import com.dk.common.model.pojo.PageInfo;
        import com.fasterxml.jackson.annotation.JsonFormat;
        import lombok.Data;
        import lombok.AllArgsConstructor;
        import lombok.NoArgsConstructor;
        import lombok.EqualsAndHashCode;
        import lombok.experimental.Accessors;
        import io.swagger.annotations.ApiModel;
        import io.swagger.annotations.ApiModelProperty;
        import com.alibaba.fastjson.JSONObject;

        import java.math.BigDecimal;
        import java.util.Arrays;
        import java.util.HashSet;
        import java.util.List;
        import java.time.LocalDateTime;
        import java.util.Set;

/**
 *  供应商
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ExportTitle("供应商")
@TableName(value = "t_mst_supplier", autoResultMap = true,schema = "dkic_b")
@ApiModel(value="实体类：供应商", description="表名：t_mst_supplier")
public class SpplierResponse extends PageInfo<SpplierResponse> implements Serializable {

    /*
     * 数据库字段
     */

    /**
     * 供应商ID
     */
//    @TableId(value = "sup_id", type = IdType.AUTO)
    @ApiModelProperty(value = "供应商ID")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String supId;

    /**
     * 合计应付
     */
    @Excel(name = "合计应付")
    @ApiModelProperty(value = "合计应付")
    private BigDecimal sumAmtPayable;
    /**
     * 供应商编号
     */
    @Excel(name = "供应商编号")
    @ApiModelProperty(value = "供应商编号")
    private String supCode;


    /**
     * 供应商名称
     */
    @Excel(name = "供应商名称")
    @ApiModelProperty(value = "供应商名称")
    private String supName;


    /**
     * 供应商类别 (【系统字典】)
     */
    @Excel(name = "供应商类别 (【系统字典】)")
    @ApiModelProperty(value = "供应商类别 (【系统字典】)")
    private String supType;

    /**
     * 联系人
     */
    @Excel(name = "联系人")
    @ApiModelProperty(value = "联系人")
    private String contactName;


    /**
     * 联系电话
     */
    @Excel(name = "联系电话")
    @ApiModelProperty(value = "联系电话")
    private String contactPhone;


    /**
     * 组织部门
     */
    @Excel(name = "组织部门")
    @ApiModelProperty(value = "组织部门")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String orgId;


    /**
     * 业务员
     */
    @Excel(name = "业务员")
    @ApiModelProperty(value = "业务员")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String staffId;
    /**
     * 业务员
     */
    @Excel(name = "业务员")
    @ApiModelProperty(value = "业务员")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String staffName;

    /**
     * 组织机构
     */
    @Excel(name = "组织机构")
    @ApiModelProperty(value = "组织机构")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String orgName;

    /**
     * 组织机构编码
     */
    @Excel(name = "组织机构")
    @ApiModelProperty(value = "组织机构")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String orgCode;

    /**
     * 服务类别 (【系统字典】)
     */
    @Excel(name = "服务类别 (【系统字典】)")
    @ApiModelProperty(value = "服务类别 (【系统字典】)")
    @TableField(typeHandler = StringListTypeHandler.class)
    private List<String> serviceCategories;


    /**
     * 备注
     */
    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remarks;


    /**
     * 有效标识 (1：正常 0：停用)
     */
    @Excel(name = "有效标识 (1：正常 0：停用)")
    @ApiModelProperty(value = "有效标识 (1：正常 0：停用)")
    private Boolean flgValid;


    /**
     * 企业ID
     */
    @Excel(name = "企业ID")
    @ApiModelProperty(value = "企业ID")
    private Integer cpId;


    /**
     * 创建时间 (触发器自动处理)
     */
    @Excel(name = "创建时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @ApiModelProperty(value = "创建时间 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opCreateTime;


    /**
     * 创建用户 (触发器自动处理)
     */
    @Excel(name = "创建用户 (触发器自动处理)")
    @ApiModelProperty(value = "创建用户 (触发器自动处理)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opCreateUserId;


    /**
     * 修改时间 (触发器自动处理)
     */
    @Excel(name = "修改时间 (触发器自动处理)", format = "yyyy-MM-dd HH:mm:ss", width = 20)
    @ApiModelProperty(value = "修改时间 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opUpdateTime;


    /**
     * 修改用户 (触发器自动处理)
     */
    @Excel(name = "修改用户 (触发器自动处理)")
    @ApiModelProperty(value = "修改用户 (触发器自动处理)")
    @TableField(typeHandler = UuidTypeHandler.class)
    private String opUpdateUserId;


    /**
     * 数据操作应用 (触发器自动处理)
     */
    @Excel(name = "数据操作应用 (触发器自动处理)")
    @ApiModelProperty(value = "数据操作应用 (触发器自动处理)")
    private String opAppCode;


    /**
     * 数据时间戳 (触发器自动处理)
     */
    @Excel(name = "数据时间戳 (触发器自动处理)")
    @ApiModelProperty(value = "数据时间戳 (触发器自动处理)")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @TableField(typeHandler = TimestampTypeHandler.class)
    private LocalDateTime opTimestamp;


    /**
     * 数据操作数据库用户 (触发器自动处理)
     */
    @Excel(name = "数据操作数据库用户 (触发器自动处理)")
    @ApiModelProperty(value = "数据操作数据库用户 (触发器自动处理)")
    private String opDbUser;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品品牌")
    private String brandName;

    @TableField(exist = false)
    @ApiModelProperty(value = "商品品牌")
    private String brandId;

    @TableField(exist = false)
    @ApiModelProperty(value = "剩余应收付")
    private String sumResidue;

    @ApiModelProperty(value = "供应品牌")
    @TableField(typeHandler = UuidListTypeHandler.class)
    private String brandIds;


    @TableField(exist = false)
    @ApiModelProperty(value = "剩余应收付")
    private String brandNames;

    @TableField(exist = false)
    @ApiModelProperty(value = "供应商类别")
    private String supTypeName;

    @TableField(exist = false)
    @ApiModelProperty(value = "供应商类别")
    private String serviceCategoriesName;
    /*
     * 相关属性
     * @TableField(exist = false)
     */
    @ApiModelProperty(value = "总剩余应付 (总应付账款-总应付核销金额)")
    private BigDecimal payableResidue ;

    @ApiModelProperty(value = "总付款金额-(总应付核销金额-总应付优惠金额)")
    private BigDecimal paymentResidue;
    /*
     * 关联属性 + 查询条件
     * @TableField(exist = false)
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "退货地址")
    private String returnAddress;

    private static final long serialVersionUID = 1L;

}
