package com.unis.crk.cplbusiness.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.unis.crk.basic.entity.Attaches;
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.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;






/**
 * <p>
 * 成品粮抽样质检
 * </p>
 *
 * @author TangSong
 * @since 2022-03-18
 * @since 2022-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="DataCrkywCpljyxxDefault对象", description="成品粮抽样质检")
public class DataCrkywCpljyxxDefault implements Serializable {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "dataId", type = IdType.UUID)
    private String dataId;

    @ApiModelProperty(value = "单位ID")
    private String unitid;

    @ApiModelProperty(value = "站点名称")
    private String zdmc;

    @ApiModelProperty(value = "站点编码")
    private String zdbm;

    @ApiModelProperty(value = "仓房id")
    private String ch;

    @ApiModelProperty(value = "货位id")
    private String hwh;

    @ApiModelProperty(value = "仓房名称")
    private String chmc;

    @ApiModelProperty(value = "货位名称")
    private String hwmc;

    @ApiModelProperty(value = "创建人")
    private String builder;


    @ApiModelProperty(value = "编辑人")
    private String editor;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "cjsj",fill = FieldFill.INSERT)
    private Date cjsj;

    @ApiModelProperty(value = "最后一次编辑时间")
    @TableField(value = "modifyDate",fill = FieldFill.INSERT_UPDATE)
    private Date modifyDate;

    @ApiModelProperty(value = "上传数据时间")
    @TableField(value = "updateTime",strategy = FieldStrategy.IGNORED,update = "null",fill = FieldFill.UPDATE)
    private Date updateTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "生产日期")
    private Date scrq;


    @ApiModelProperty(value = "保质期")
    private String bzq;

    @ApiModelProperty(value = "性质")
    private String xz;

    @ApiModelProperty(value = "部门id")
    @TableField("deptId")
    private String deptId;

    @ApiModelProperty(value = "实际军粮品种名称")
    private String sjjlpzmc;

    @ApiModelProperty(value = "实际军粮品种编号")
    private String sjjlpzbh;

    @ApiModelProperty(value = "实际军粮品牌名称")
    private String sjjlppmc;

    @ApiModelProperty(value = "实际军粮品牌编号")
    private String sjjlppbh;

    @ApiModelProperty(value = "实际军粮等级编号")
    private String sjjldjbh;

    @ApiModelProperty(value = "实际军粮等级名称")
    private String sjjldjmc;

    @ApiModelProperty(value = "实际军粮商品名称")
    private String sjjlspmc;

    @ApiModelProperty(value = "实际军粮商品名称编号")
    private String sjjlspmcbh;

    @ApiModelProperty(value = "生产批次")
    private String scpc;

    @ApiModelProperty(value = "供应商编号")
    private String gysbh;

    @ApiModelProperty(value = "供应商")
    private String gys;

    @ApiModelProperty(value = "订单编号")
    private String ddbh;

    @ApiModelProperty(value = "订单从表ID")
    private String ddcbid;

    @ApiModelProperty(value = "合同号")
    private String htbh;

    @ApiModelProperty(value = "计划文件号")
    private String jhbh;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "到货日期")
    private Date dhrq;

    @ApiModelProperty(value = "抽样说明")
    private String cysm;

    @ApiModelProperty(value = "抽样时间")
    private Date cysj;

    @ApiModelProperty(value = "抽样人")
    private String cyr;

    @ApiModelProperty(value = "抽样位点数")
    private String cywds;

    @ApiModelProperty(value = "样品编号")
    private String ypbh;

    @ApiModelProperty(value = "采用的质量标准")
    private String cybz;

    @ApiModelProperty(value = "质检报告编号")
    private String zljybhbh;

    @ApiModelProperty(value = "检验人")
    private String jyr;

    @ApiModelProperty(value = "检验方式 自检或第三方机构（列出地方）")
    private String jyfs;

    @ApiModelProperty(value = "第三方质检机构编码")
    private String dsfjhbm;

    @ApiModelProperty(value = "检验结果")
    private String jyjg;

    @ApiModelProperty(value = "业务类型")
    private String ywlx;

    @ApiModelProperty(value = "标准要求(文本框输入)")
    private String bzyq;

    @ApiModelProperty(value = "检验标准（默认质量标准）")
    private String jybz;

    @ApiModelProperty(value = "粮油标准研究验证(默认  重庆国家粮食质量监测中心)")
    private String lybzyjyz;

    @ApiModelProperty(value = "备注")
    private String bz;


    @ApiModelProperty(value = "检验从表信息")
    @TableField(exist = false)
    private List<DataCrkywCpljyxxFlt001> fltList = new ArrayList<>();

    @ApiModelProperty(value = "检验结果名称")
    @TableField(exist = false)
    private String jyjgName;

    @ApiModelProperty(value = "检验方式名称")
    @TableField(exist = false)
    private String jyfsName;

    @ApiModelProperty(value = "检验时间")
    private Date jysj;


    @ApiModelProperty(value = "评分")
    private String pf;

    @ApiModelProperty(value = "业务类型名称")
    @TableField(exist = false)
    private String ywlxmc;

    @ApiModelProperty(value = "附件信息")
    @TableField(exist = false)
    private Attaches attaches;

    @ApiModelProperty(value = "检验机构名称")
    private String nameOfInspectionInstitution;

    @ApiModelProperty(value = "样品数量")
    private int ypsl;
}
