| package com.fzzy.async.fzzy61.entity; | 
|   | 
| import com.alibaba.fastjson.annotation.JSONField; | 
| import com.bstek.dorado.annotation.PropertyDef; | 
| import lombok.Data; | 
|   | 
| import javax.persistence.*; | 
| import java.io.Serializable; | 
| import java.util.Date; | 
| import java.util.List; | 
|   | 
| /** | 
|  * 质量管理,2023年5月26日 根据新国粮规优化调整 | 
|  * | 
|  * @author chen | 
|  */ | 
| @Data | 
| @Entity | 
| @Table(name = "D_M_QUALITY") | 
| public class Fz61Quality implements Serializable { | 
|   | 
|     public static String SORT_PROP = "id"; | 
|   | 
|     @Id | 
|     @Column(name = "ID_", length = 40) | 
|     @PropertyDef(label = "主键ID", description = "yyyyMMdd + 4位顺序号") | 
|     private String id; | 
|   | 
|     @Column(name = "COMPANY_ID_", length = 10) | 
|     @PropertyDef(label = "组织编码") | 
|     private String companyId; | 
|   | 
|     @Column(name = "DEPT_ID_", length = 40) | 
|     @PropertyDef(label = "库区编码") | 
|     private String deptId; | 
|   | 
|     @Column(name = "DEPOT_ID_", length = 50) | 
|     @PropertyDef(label = "仓库编码") | 
|     private String depotId; | 
|   | 
|     @Column(name = "FOOD_VARIETY_", length = 10) | 
|     @PropertyDef(label = "粮食品种") | 
|     private String foodVariety; | 
|   | 
|     @Column(name = "FOOD_LEVEL_", length = 10) | 
|     @PropertyDef(label = "粮食等级") | 
|     private String foodLevel; | 
|   | 
|     @PropertyDef(label = "入库日期") | 
|     @Column(name = "STORE_DATE_") | 
|     private Date storeDate; | 
|   | 
|     @Column(name = "TYPE_", length = 10) | 
|     @PropertyDef(label = "检验类别", description = "01:入仓验收 02:出仓检验 03:3 月末普检04:9 月末普检 05:入仓初检 06:月度检查 07:3 月末库内普查 08:9 月末库内普查") | 
|     private String type; | 
|   | 
|     @Column(name = "TIME_") | 
|     @PropertyDef(label = "检验时间") | 
|     private Date time; | 
|   | 
|     @Column(name = "UNIT_", length = 50) | 
|     @PropertyDef(label = "检验单位") | 
|     private String unit; | 
|   | 
|     @Column(name = "USER_", length = 50) | 
|     @PropertyDef(label = "检验人", description = "检验人员姓名,若有多个保管员") | 
|     private String user; | 
|   | 
|     @Column(name = "STANDARD_", length = 4) | 
|     @PropertyDef(label = "检验依据", description = "1-国标,0-其他") | 
|     private String standard; | 
|   | 
|   | 
|     @PropertyDef(label = "指标类别", description = "1: 质量指标检验2:储存品质检验3:食品安全检验 如果同时检验了多个,用#隔开,例如:1#2#3") | 
|     @Column(name = "zblb", length = 8) | 
|     private String zblb; | 
|   | 
|     @Column(name = "RESULT_", length = 40) | 
|     @PropertyDef(label = "检验结论", description = "1、质量指标填写/达标/不达标 2、储存品质指标填写“宜存”、轻度不宜存”、“重度不宜存”3、食品安全指标填写“合格”、不合格” 多项指标时以#分隔,例如:达标|综合判定#宜存#合格 ") | 
|     private String result; | 
|   | 
|     @Column(name = "spaqzbsfhg", length = 40) | 
|     @PropertyDef(label = "食品安全指标是否合格", description = "0-不合格,1-合格") | 
|     private String spaqzbsfhg; | 
|   | 
|     @JSONField(format = "yyyy-MM-dd") | 
|     @PropertyDef(label = "签发日期") | 
|     @Column(name = "qfrq") | 
|     private Date qfrq; | 
|   | 
|     @JSONField(format = "yyyy-MM-dd HH:mm:ss") | 
|     @PropertyDef(label = "报告出具时间") | 
|     @Column(name = "bgcjsj") | 
|     private Date bgcjsj; | 
|   | 
|     @PropertyDef(label = "审核人姓名") | 
|     @Column(name = "shrxm", length = 64) | 
|     private String shrxm; | 
|   | 
|     @PropertyDef(label = "扦样单编号") | 
|     @Column(name = "qydbh", length = 64) | 
|     private String qydbh; | 
|   | 
|     @Column(name = "CHECK_TIME_") | 
|     @PropertyDef(label = "扦样时间", required = true) | 
|     private Date checkTime; | 
|   | 
|     @Column(name = "CHECK_AREA_", length = 50) | 
|     @PropertyDef(label = "扦样区域") | 
|     private String checkArea; | 
|   | 
|     @Column(name = "CHECK_USER_", length = 50) | 
|     @PropertyDef(label = "扦样人", required = true) | 
|     private String checkUser; | 
|   | 
|     @PropertyDef(label = "监督人姓名") | 
|     @Column(name = "jdrxm", length = 64) | 
|     private String jdrxm; | 
|   | 
|     @PropertyDef(label = "样品编号") | 
|     @Column(name = "ypbh", length = 64) | 
|     private String ypbh; | 
|   | 
|     @PropertyDef(label = "样品数量", required = true) | 
|     @Column(name = "ypsl", precision = 20, scale = 6) | 
|     private Double ypsl; | 
|   | 
|     @PropertyDef(label = "代表数量") | 
|     @Column(name = "dbsl", precision = 20, scale = 6) | 
|     private Double dbsl; | 
|   | 
|     @PropertyDef(label = "样品等级") | 
|     @Column(name = "ypdj", length = 2) | 
|     private String ypdj; | 
|   | 
|     @Column(name = "NORMAL_YEAR_", length = 10) | 
|     @PropertyDef(label = "是否正常存储年限") | 
|     private String normalYear; | 
|   | 
|     @Column(name = "REMARK_", length = 200) | 
|     @PropertyDef(label = "备注", description = "备注信息") | 
|     private String remark; | 
|   | 
|     @Column(name = "UPDATE_TIME_") | 
|     @PropertyDef(label = "数据更新时间") | 
|     private Date updateTime; | 
|   | 
|     @Column(name = "REPORT_TYPE_", length = 10) | 
|     @PropertyDef(label = "报告类型", description = "1-单位检验,2-整体检验(加权平均),3-其他") | 
|     private String reportType; | 
|   | 
|     /** | 
|      * 化验项目明细 | 
|      */ | 
|     @Transient | 
|     private List<Fz61CheckItem> checkItems; | 
|   | 
|     /** | 
|      * --------附件-------- | 
|      **/ | 
|     @Column(name = "FILE_ID_", length = 30) | 
|     @PropertyDef(label = "附件id") | 
|     private String fileId; | 
|   | 
|     @Column(name = "FILE_NAME_", length = 50) | 
|     @PropertyDef(label = "附件名称") | 
|     private String fileName; | 
|   | 
|     @Column(name = "FILE_TIME_") | 
|     @PropertyDef(label = "附件上传时间") | 
|     private Date fileTime; | 
|   | 
| } |