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

import com.baomidou.mybatisplus.annotation.TableField;
import com.storlead.framework.annotate.Dict;
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 = "BusinessLossDTO", description = "更改商机流失DTO")
public class BusinessLossDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "商机主键")
    private Long id;

    @ApiModelProperty(value = "是否是流失商机（0不是，1是）")
    @TableField("has_loss")
    @Dict(dictCode = "has_loss")
    private Integer hasLoss;

    @ApiModelProperty(value = "流失原因（对应字典流失原因value）")
    @TableField("loss_reason_dict_value")
    @Dict(dictCode = "loss_reason")
    private String lossReasonDictValue;

    @ApiModelProperty(value = "流失备注")
    @TableField("loss_remark")
    private String lossRemark;

    @ApiModelProperty(value = "唤醒原因value（对应字典唤醒原因value）")
    @Dict(dictCode = "awaken_reason",valueField = "awakenReasonName")
    private String awakenReasonDictValue;

    @ApiModelProperty(value = "唤醒原因")
    private String awakenReasonName;

    @ApiModelProperty(value = "唤醒备注")
    private String awakenRemark;
}
