package com.ld.igds.models; import com.bstek.dorado.annotation.PropertyDef; import com.fasterxml.jackson.annotation.JsonFormat; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 设备信息 * * @Author:YAN */ @Data @Entity @Table(name = "D_DEPT_DEVICE") public class DeptDevice implements Serializable { private static final long serialVersionUID = 1L; @Id @Column(name = "ID_", length = 40) @PropertyDef(label = "ID") private String id; @Column(name = "kqdm", length = 40) @PropertyDef(label = "库区代码") private String kqdm; @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码", description = "") private String companyId; @Column(name = "dwdm", length = 18) @PropertyDef(label = "单位代码") private String dwdm; @Column(name = "kqmc", length = 256) @PropertyDef(label = "库区名称") private String kqmc; @Column(name = "sbbh", length = 20) @PropertyDef(label = "设备编号") private String sbbh; @Column(name = "sbyqmc", length = 50) @PropertyDef(label = "设备仪器名称") private String sbyqmc; @Column(name = "sbyqdm", length = 8) @PropertyDef(label = "设备仪器代码") private String sbyqdm; @Column(name = "sbggxh", length = 50) @PropertyDef(label = "设备规格型号") private String sbggxh; @Column(name = "sccj", length = 256) @PropertyDef(label = "生产厂家") private String sccj; @Column(name = "scrq") @PropertyDef(label = "生产日期") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date scrq; @Column(name = "sbms", length = 50) @PropertyDef(label = "设备描述") private String sbms; @Column(name = "sbzt", length = 1) @PropertyDef(label = "设备状态") private String sbzt; @Column(name = "jdsj") @PropertyDef(label = "检定时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date jdsj; @Column(name = "jddw", length = 256) @PropertyDef(label = "检定单位") private String jddw; @Column(name = "UPDATE_TIME_") @PropertyDef(label = "更新时间") @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8") private Date updateTime; }