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

import cn.hutool.core.date.DateTime;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "SendRecordAddDTO", description = "客户寄样记录添加DTO")
public class SendRecordAddDTO {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "寄样记录id")
    private Long id;

    @ApiModelProperty(value = "寄样时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime sendRecordTime;

    @ApiModelProperty(value = "寄样产品")
    private String sendProduct;

    @ApiModelProperty(value = "样品描述")
    private String productDescription;

    @ApiModelProperty(value = "收样人员id（对应客户联系人表id）")
    private Long receiveLiaisonId;

    @ApiModelProperty(value = "寄样人员id（对应系统用户表id）")
    private Long sendMemberId;

    @ApiModelProperty(value = "关联客户id")
    private Long customerId;

    @ApiModelProperty(value = "归属人员")
    private Long ownerBy;

    @ApiModelProperty(value = "样品金额")
    private BigDecimal recordAmount;

    @ApiModelProperty(value = "关联业务10:客户、11线索、20:联系人、30:商机、40:订单、50:回款、60:退款、70:费用、80:任务、90:跟进、100:工单")
    private String resourceType;

    @ApiModelProperty(value = "关联业务数据")
    private String resourceTypeId;
}
