package com.jeeplus.psimanage.loss.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeeplus.core.domain.BaseEntity;
import com.jeeplus.psimanage.oss.service.dto.WorkAttachmentDto;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
@TableName("psi_management_loss_detailed")
public class PsiLossDetailed extends BaseEntity {

    private String basicId;

    private String recipientAgent;

    @TableField(exist = false)
    private String recipientAgentId;

    @TableField(exist = false)
    private String recipientOffice;

    @TableField("collect_type")
    private String collectType;

    @TableField(exist = false)
    private String collectTypeId;

    private String goodsName;

    @TableField("loss_number")
    private String lossNumber;

    private String company;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date produceDate;

    private String shelfLife;

    private String spec;

    private String shelfLifeUnit;

    @TableField(exist = false)
    private String surplusNumber;

    @TableField(exist = false)
    private List<WorkAttachmentDto> fileInfoLost;

    @TableField(exist = false)
    private String handledByOfficeName;

    @TableField(exist = false)
    private String handledByName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @TableField(exist = false)
    private String[] lossDates;

    @TableField(exist = false)
    private String lossNo;
}
