package com.storlead.sales.pojo.dto.systemrule;

import com.baomidou.mybatisplus.annotation.TableField;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SystemRuleModuleConfigAddDTO", description = "规则配置模块添加/修改DTO")
public class SystemRuleModuleConfigAddDTO {

    @ApiModelProperty(value = "规则模块id")
    private Long id;

    @ApiModelProperty(value = "更新人姓名")
    @TableField("update_name")
    private String updateName;

    @ApiModelProperty(value = "更新说明")
    @TableField("update_explain")
    private String updateExplain;

    @ApiModelProperty(value = "是否限制成员拥有线索/客户上限")
    @TableField("has_max_member")
    private Boolean hasMaxMember;

    @ApiModelProperty(value = "成员拥有线索/客户上限数量")
    @TableField("max_member_num")
    private Integer maxMemberNum;

    @ApiModelProperty(value = "是否开启线索/客户置公设置")
    @TableField("has_public_clues")
    private Boolean hasPublicClues;

    @ApiModelProperty(value = "是否区分重点客户与普通客户")
    @TableField("has_distinguish_key_regular")
    private Boolean hasDistinguishKeyRegular;

    @ApiModelProperty(value = "普通客户最大未跟进天数")
    @TableField("regular_follow_date")
    private Integer regularFollowDate;

    @ApiModelProperty(value = "重点客户最大未跟进天数")
    @TableField("key_follow_date")
    private Integer keyFollowDate;

    @ApiModelProperty(value = "普通客户最大未成交天数")
    @TableField("regular_transaction_date")
    private Integer regularTransactionDate;

    @ApiModelProperty(value = "重点客户最大未成交天数")
    @TableField("key_transaction_date")
    private Integer keyTransactionDate;

    @ApiModelProperty(value = "线索/客户置公时间")
    @TableField("max_public_clues_num")
    private Integer maxPublicCluesNum;

    @ApiModelProperty(value = "是否开启线索/客户清空设置")
    @TableField("has_clear_clues")
    private Boolean hasClearClues;

    @ApiModelProperty(value = "线索/客户清空时间（天数）")
    @TableField("max_clear_clues_num")
    private Integer maxClearCluesNum;

    @ApiModelProperty(value = "是否开启查重规则配置")
    @TableField("has_plagiarism_rules")
    private Boolean hasPlagiarismRules;

    @ApiModelProperty(value = "查重规则配置详情（JSON）")
    @TableField("plagiarism_rules")
    private String plagiarismRules;


}
