From 208ee7c6c9cac9c0ed38f1640af98034ffdccd72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=BA=E5=AD=90=E7=83=A8?= <1686821393@qq.com> Date: Mon, 28 Feb 2022 19:32:59 +0800 Subject: [PATCH] entity --- java/local/pom.xml | 5 ++ .../cn/toesbieya/jxc/model/entity1/Cabin.java | 58 ++++++++++++ .../jxc/model/entity1/CabinReagent.java | 64 +++++++++++++ .../jxc/model/entity1/Container.java | 58 ++++++++++++ .../jxc/model/entity1/Equipment.java | 89 +++++++++++++++++++ .../toesbieya/jxc/model/entity1/Inbound.java | 68 ++++++++++++++ .../jxc/model/entity1/LocationReagent.java | 63 +++++++++++++ .../toesbieya/jxc/model/entity1/Outbound.java | 58 ++++++++++++ .../jxc/model/entity1/ReagentBatch.java | 58 ++++++++++++ .../jxc/model/entity1/ReagentManufacture.java | 68 ++++++++++++++ .../jxc/model/entity1/ReagentRisk.java | 58 ++++++++++++ .../jxc/model/entity1/ReagentType.java | 58 ++++++++++++ .../jxc/model/entity1/ReagentUnit.java | 58 ++++++++++++ .../jxc/model/entity1/Storehouse.java | 68 ++++++++++++++ 14 files changed, 831 insertions(+) create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Cabin.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/CabinReagent.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Container.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Equipment.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Inbound.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/LocationReagent.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Outbound.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentBatch.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentManufacture.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentRisk.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentType.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentUnit.java create mode 100644 java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Storehouse.java diff --git a/java/local/pom.xml b/java/local/pom.xml index 36ab1a1..6d62a9d 100644 --- a/java/local/pom.xml +++ b/java/local/pom.xml @@ -107,6 +107,11 @@ org.projectlombok lombok + + jakarta.persistence + jakarta.persistence-api + 2.2.3 + diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Cabin.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Cabin.java new file mode 100644 index 0000000..ffd2a88 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Cabin.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class Cabin implements Serializable { + + private static final long serialVersionUID = 302139287110092751L; + + /** + * 仓位id + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String name; + /** + * 所属设备id + */ + @Column + private Integer equId; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/CabinReagent.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/CabinReagent.java new file mode 100644 index 0000000..1dbcc25 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/CabinReagent.java @@ -0,0 +1,64 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ + +@Getter +@Setter +@ToString +public class CabinReagent implements Serializable { + + private static final long serialVersionUID = 37424333250113914L; + + /** + * 仓位——试剂关系表 + */ + @Column + private Integer id; + /** + * 仓位id + */ + @Column + private String cabinId; + /** + * 试剂id + */ + @Column + private Integer reagentDetailId; + /** + * 数量 + */ + @Column + private Integer quantity; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Container.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Container.java new file mode 100644 index 0000000..88b7e7c --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Container.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class Container implements Serializable { + + private static final long serialVersionUID = 8435766218526004241L; + + /** + * 货柜编码 + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String name; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Equipment.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Equipment.java new file mode 100644 index 0000000..9ca7cb1 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Equipment.java @@ -0,0 +1,89 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString + +public class Equipment implements Serializable { + + private static final long serialVersionUID = 5785871803727322715L; + + /** + * 设备编码 + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String name; + /** + * 型号 + */ + @Column + private String spec; + /** + * 功能简述 + */ + @Column + private String desc; + /** + * 厂商 + */ + @Column + private String manufacture; + /** + * 制造日期 + */ + @Column + private Long manuDate; + /** + * 购买日期 + */ + @Column + private Long buyDate; + /** + * 存放位置 + */ + @Column + private String location; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Inbound.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Inbound.java new file mode 100644 index 0000000..9baff29 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Inbound.java @@ -0,0 +1,68 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class Inbound implements Serializable { + + private static final long serialVersionUID = 4697272372063253373L; + + /** + * 入库记录表 + */ + @Column + private Integer id; + /** + * 试剂id + */ + @Column + private Integer reagentId; + /** + * 数量 + */ + @Column + private Integer amount; + /** + * 货位id + */ + @Column + private String locationId; + /** + * 操作员id + */ + @Column + private Integer operatorId; + /** + * 操作时间 + */ + @Column + private Long operationTime; + /** + * 审核人id + */ + @Column + private Integer reviewerId; + /** + * 审核时间 + */ + @Column + private Long reviewTime; + /** + * 单据状态,0初始保存态,1提交态,2完成态 + */ + @Column + private Integer status; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/LocationReagent.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/LocationReagent.java new file mode 100644 index 0000000..90bd717 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/LocationReagent.java @@ -0,0 +1,63 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class LocationReagent implements Serializable { + + private static final long serialVersionUID = 390719506548402135L; + + /** + * 仓位——试剂关系表 + */ + @Column + private Integer id; + /** + * 货位id + */ + @Column + private String locationId; + /** + * 试剂id + */ + @Column + private Integer reagentDetailId; + /** + * 数量 + */ + @Column + private Integer quantity; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Outbound.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Outbound.java new file mode 100644 index 0000000..c438bca --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Outbound.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class Outbound implements Serializable { + + private static final long serialVersionUID = 6905406598783486694L; + + /** + * 出库记录表 + */ + @Column + private Integer id; + /** + * 试剂id + */ + @Column + private Integer reagentId; + /** + * 仓位id + */ + @Column + private Integer cabinId; + /** + * 货位id + */ + @Column + private Integer locationId; + /** + * 数量 + */ + @Column + private Integer amount; + /** + * 操作员id + */ + @Column + private Integer user; + /** + * 操作时间 + */ + @Column + private Long date; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentBatch.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentBatch.java new file mode 100644 index 0000000..fa2dcc1 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentBatch.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class ReagentBatch implements Serializable { + + private static final long serialVersionUID = 6586256490114771506L; + + /** + * 入库批号编码 + */ + @Column + private Integer id; + /** + * 批号 + */ + @Column + private String description; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentManufacture.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentManufacture.java new file mode 100644 index 0000000..d2f8f84 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentManufacture.java @@ -0,0 +1,68 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class ReagentManufacture implements Serializable { + + private static final long serialVersionUID = 1872172189322861429L; + + /** + * 试剂厂商id + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String name; + /** + * 地址 + */ + @Column + private String address; + /** + * 联系方式 + */ + @Column + private String phone; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentRisk.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentRisk.java new file mode 100644 index 0000000..452cd51 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentRisk.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class ReagentRisk implements Serializable { + + private static final long serialVersionUID = 8987285373475948163L; + + /** + * 危险类型编码 + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String description; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentType.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentType.java new file mode 100644 index 0000000..b1047a4 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentType.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class ReagentType implements Serializable { + + private static final long serialVersionUID = 1504622734461896784L; + + /** + * 试剂l类型编码 + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String description; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentUnit.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentUnit.java new file mode 100644 index 0000000..43cc523 --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/ReagentUnit.java @@ -0,0 +1,58 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class ReagentUnit implements Serializable { + + private static final long serialVersionUID = 9140172683108996775L; + + /** + * 试剂单位编码 + */ + @Column + private Integer id; + /** + * 单位 + */ + @Column + private String description; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +} diff --git a/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Storehouse.java b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Storehouse.java new file mode 100644 index 0000000..258171f --- /dev/null +++ b/java/local/src/main/java/cn/toesbieya/jxc/model/entity1/Storehouse.java @@ -0,0 +1,68 @@ +package cn.toesbieya.jxc.model.entity1; + + +import lombok.Getter; +import lombok.Setter; +import lombok.ToString; +import java.io.Serializable; +import javax.persistence.Column; + +/** + * + * @author 强子烨 + * @version 1.0 + * @since 2022-02-28 + */ +@Getter +@Setter +@ToString +public class Storehouse implements Serializable { + + private static final long serialVersionUID = 8192385674391362980L; + + /** + * 仓库编码 + */ + @Column + private Integer id; + /** + * 名称 + */ + @Column + private String name; + /** + * 级别,1一级、2二级 + */ + @Column + private Integer level; + /** + * 类型,1常温,2冷藏 + */ + @Column + private Integer type; + /** + * 状态,0停用,1启用 + */ + @Column + private Integer status; + /** + * 创建人id + */ + @Column + private Integer creatorId; + /** + * 创建时间 + */ + @Column + private Long createTime; + /** + * 修改人id + */ + @Column + private Integer updateId; + /** + * 修改时间 + */ + @Column + private Long updateTime; +}