From 26684524f1acb5dae1d21779bc45a17018b287c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=80=9D=E6=B4=81?= Date: Fri, 27 Sep 2019 16:37:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E4=BA=A7=E6=8A=A5=E5=B7=A5=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=92=8C=E7=94=9F=E4=BA=A7=E6=8A=A5=E5=B7=A5=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E7=BB=84=E4=BB=B6=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/base/enumutil/WmsEnumUtil.java | 69 ++++++++++++++++++++++ .../i3plus/pojo/wms/bean/WmsPrintingQueue.java | 55 +++++++++++++++++ .../wms/repository/WmsPrintingQueueRepository.java | 17 ++++++ 3 files changed, 141 insertions(+) create mode 100644 modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsPrintingQueue.java create mode 100644 modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPrintingQueueRepository.java diff --git a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java index 5cc62e7..7d6be83 100644 --- a/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java +++ b/modules/i3plus-pojo-base/src/main/java/cn/estsh/i3plus/pojo/base/enumutil/WmsEnumUtil.java @@ -3449,4 +3449,73 @@ public class WmsEnumUtil { } } + /** + * 打印类型 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum PRINT_TYPE { + SN(10, "SN"); + + private int value; + private String description; + + PRINT_TYPE(int value, String description) { + this.value = value; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public static String valueOf(int val) { + String tmp = null; + for (int i = 0; i < values().length; i++) { + if (values()[i].value == val) { + tmp = values()[i].description; + } + } + return tmp; + } + } + + /** + * 打印状态 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum ETC_PRINT_STATUS { + NOT_HIT (10, "未打"), + ALREADY_HIT(20, "已打"); + + private int value; + private String description; + + ETC_PRINT_STATUS(int value, String description) { + this.value = value; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public static String valueOf(int val) { + String tmp = null; + for (int i = 0; i < values().length; i++) { + if (values()[i].value == val) { + tmp = values()[i].description; + } + } + return tmp; + } + } + } \ No newline at end of file diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsPrintingQueue.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsPrintingQueue.java new file mode 100644 index 0000000..9aac6f4 --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/bean/WmsPrintingQueue.java @@ -0,0 +1,55 @@ +package cn.estsh.i3plus.pojo.wms.bean; + +import cn.estsh.i3plus.pojo.base.bean.BaseBean; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiParam; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.hibernate.annotations.DynamicInsert; +import org.hibernate.annotations.DynamicUpdate; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Table; + +/** + * @Description : 待打印队列表 + * @Reference : + * @Author : jessica.chen + * @CreateDate : 2019-09-27 14:21 + * @Modify: + **/ +@Data +@Entity +@DynamicInsert +@DynamicUpdate +@EqualsAndHashCode(callSuper = true) +@Table(name="WMS_PRINTING_QUEUE") +@Api("待打印队列表") +public class WmsPrintingQueue extends BaseBean{ + + private static final long serialVersionUID = 1111639813072592779L; + @Column(name="PRINT_IDENTIFICATION") + @ApiParam("打印标识") + private String printIdentification; + + @Column(name="PRINT_TYPE") + @ApiParam("打印类型") + private Integer printType; + + @Column(name="PRINT_NO") + @ApiParam("打印机编号") + private String printNo; + + @Column(name="PRINT_MUMBER") + @ApiParam("打印机张数") + private Integer printNumber; + + @Column(name="TEMPLATE_NO") + @ApiParam("模板编号") + private String templateNo; + + @Column(name="PRINT_STATUS") + @ApiParam("打印状态") + private Integer printStatus; +} \ No newline at end of file diff --git a/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPrintingQueueRepository.java b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPrintingQueueRepository.java new file mode 100644 index 0000000..b63a0f8 --- /dev/null +++ b/modules/i3plus-pojo-wms/src/main/java/cn/estsh/i3plus/pojo/wms/repository/WmsPrintingQueueRepository.java @@ -0,0 +1,17 @@ +package cn.estsh.i3plus.pojo.wms.repository; + +import cn.estsh.i3plus.pojo.base.jpa.dao.BaseRepository; +import cn.estsh.i3plus.pojo.wms.bean.BasVendor; +import cn.estsh.i3plus.pojo.wms.bean.WmsPrintingQueue; +import org.springframework.stereotype.Repository; + +/** + * @Description :待打印配置表 + * @Reference : + * @Author : jessica.chen + * @CreateDate : 2019-09-27 14:49 + * @Modify: + **/ +@Repository +public interface WmsPrintingQueueRepository extends BaseRepository { +}