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

import cn.hutool.core.date.DateTime;
import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.storlead.framework.mybatis.entity.SysBaseField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
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;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 寄样记录表
 * </p>
 *
 * @author YPZ
 * @since 2024-04-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("send_record")
@ApiModel(value="SendRecordEntity对象", description="寄样记录表")
public class SendRecordEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "寄样记录id")
    @TableId(value = "id", type = IdType.AUTO)
    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")
    @TableField("send_record_time")
    private LocalDateTime sendRecordTime;

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

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

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

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

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

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

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

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


}
