package com.ld.igds.models; import com.bstek.dorado.annotation.PropertyDef; import lombok.Data; import javax.persistence.*; import java.io.Serializable; import java.util.Date; /** * 门禁记录表 * */ @Data @Entity @Table(name = "D_DOOR_RECORD") public class DoorRecord implements Serializable { /** * */ private static final long serialVersionUID = 1L; @Id @Column(name = "ID_") @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Column(name = "APPLY_ID_", length = 40) @PropertyDef(label = "申请表ID") private String applyId; @Column(name = "COMPANY_ID_", length = 10) @PropertyDef(label = "组织编码") private String companyId; @Column(name = "DEPT_ID_", length = 30) @PropertyDef(label = "所属分库") private String deptId; @Column(name = "DEPOT_ID_", length = 50) @PropertyDef(label = "门仓库") private String depotId; @Column(name = "DOOR_NAME_", length = 50) @PropertyDef(label = "门名称") private String doorName; @Column(name = "USER_", length = 20) @PropertyDef(label = "开门人") private String user; @Column(name = "USER_NAME_", length = 30) @PropertyDef(label = "开门人中文名") private String userName; @Column(name = "DOOR_TYPE_", length = 10) @PropertyDef(label = "类型", description = "开门或者关门") private String doorType; @Column(name = "IS_NORMAL", length = 10) @PropertyDef(label = "是否正常开门", description = "开关门-正常,开关门-警告") private String isNormal; @Column(name = "TIME_") @PropertyDef(label = "开门时间") private Date time; @Column(name = "INFO_", length = 100) @PropertyDef(label = "说明") private String info; @Column(name = "IMG1", length = 100) @PropertyDef(label = "抓拍记录1") private String img1; @Column(name = "IMG2", length = 100) @PropertyDef(label = "抓拍记录2") private String img2; @Column(name = "IMG3", length = 100) @PropertyDef(label = "抓拍记录3") private String img3; }