package com.ld.igds.models; import java.io.Serializable; import java.util.Date; import java.util.List; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.Table; import javax.persistence.Transient; import lombok.Data; import com.bstek.dorado.annotation.PropertyDef; /** * 虫害统计 * * @author: andy.jia * @description: * @version: * @data:2019年12月25日 * */ @Data @Entity @Table(name = "D_PEST") public class Pest implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "BATCH_ID_", length = 40) @PropertyDef(label = "批次ID") private String batchId; @Id @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码", description = "") private String companyId; @Id @Column(name = "DEPOT_ID_", length = 50) @PropertyDef(label = "仓库ID", description = "仓库编号") private String depotId; @Column(name = "PEST_MAX_") @PropertyDef(label = "最多数量") private int pestMax = 0; @Column(name = "METHOD_", length = 10) @PropertyDef(label = "虫害检测方法", description = "0-粮堆扦样;1-墙面粮面检查") private String method; @Column(name = "POSITION_", length =30) @PropertyDef(label = "发生部位") private String position; @Column(name = "PEST_TYPE_", length =30) @PropertyDef(label = "虫害种类") private String pestType; @Column(name = "PEST_LEVEL_", length =30) @PropertyDef(label = "虫粮等级判定") private String pestLevel; @Column(name = "PEST_ANALYSIS_", length =60) @PropertyDef(label = "害虫抗药性分析") private String pestAnalysis; @Column(name = "PEST_START_") @PropertyDef(label = "虫害采集点开始", description = "气体配置信息") private int pestStart; @Column(name = "PEST_END_") @PropertyDef(label = "虫害采集点截至", description = "气体配置信息") private int pestEnd; @Column(name = "CHECK_NUM_") @PropertyDef(label = "采集通道个数") private int checkNum = 0; @Column(name = "RECEIVE_DATE_") @PropertyDef(label = "检测时间") private Date receiveDate; @Column(name = "POINTS_", length = 2000) @PropertyDef(label = "采集点信息", description = "固定为:passCode,num;passCode,num;") private String points; @Column(name = "CHECK_USER_", length = 30) @PropertyDef(label = "检测人") private String checkUser; @Column(name = "REMARK_", length = 200) @PropertyDef(label = "备注信息") private String remark; @Transient @PropertyDef(label = "采集点信息") List listPoint; public Pest() { super(); } public Pest(String batchId, String companyId, String depotId, Date receiveDate) { this.batchId = batchId; this.companyId = companyId; this.depotId = depotId; this.receiveDate = receiveDate; } @Override public String toString() { return "Pest [batchId=" + batchId + ", companyId=" + companyId + ", depotId=" + depotId + ", pestMax=" + pestMax + ", checkNum=" + checkNum + ", receiveDate=" + receiveDate + ", points=" + points + ", checkUser=" + checkUser + ", remark=" + remark + "]"; } }