From 31c26017c1c25ac70ae49dac905d0396ea14e2df Mon Sep 17 00:00:00 2001 From: "jimmy.zeng" Date: Tue, 2 Jun 2020 13:52:28 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=902009=20=E5=A4=A9=E6=B4=A5=E9=BA=A6?= =?UTF-8?q?=E6=A0=BC=E7=BA=B3WMS-=E6=8A=A5=E8=A1=A8-=E5=BA=93=E4=BD=8D?= =?UTF-8?q?=E5=88=A9=E7=94=A8=E7=8E=87=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../i3plus/pojo/base/enumutil/WmsEnumUtil.java | 75 ++++++++++++++++++++++ .../i3plus/pojo/model/wms/WmsLocateModel.java | 67 +++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsLocateModel.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 de4805e..5d01942 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 @@ -7397,4 +7397,79 @@ public class WmsEnumUtil { return null; } } + + /** + * 库位利用率 + */ + @JsonFormat(shape = JsonFormat.Shape.OBJECT) + public enum LOCATE_PROPORTION { + ZERO(10, "ZERO", "0%"), + GENERAL(20, "GENERAL", "0%-30%"), + MEDIUM(30, "MEDIUM", "30%-60%"), + WELL(40, "WELL", "60%-100%"); + + private int value; + private String code; + private String description; + + LOCATE_PROPORTION(int value, String code, String description) { + this.value = value; + this.code = code; + this.description = description; + } + + public int getValue() { + return value; + } + + public String getDescription() { + return description; + } + + public String getCode() { + return code; + } + + 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; + } + + public static String valueOfDescription(int val) { + return valueOf(val); + } + + public static int descriptionOfValue(String desc) { + return descOf(desc); + } + + + public static int descOf(String desc) { + int tmp = 1; + for (int i = 0; i < values().length; i++) { + if (values()[i].description.equals(desc)) { + tmp = values()[i].value; + } + } + return tmp; + } + + public static LOCATE_PROPORTION codeOf(Integer value) { + if (value == null) { + return null; + } else { + for (int i = 0; i < values().length; i++) { + if (values()[i].value == value) { + return values()[i]; + } + } + } + return null; + } + } } diff --git a/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsLocateModel.java b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsLocateModel.java new file mode 100644 index 0000000..99d5669 --- /dev/null +++ b/modules/i3plus-pojo-model/src/main/java/cn/estsh/i3plus/pojo/model/wms/WmsLocateModel.java @@ -0,0 +1,67 @@ +package cn.estsh.i3plus.pojo.model.wms; + +import io.swagger.annotations.ApiParam; +import lombok.Data; + +import java.io.Serializable; + +/** + * @Description : + * @Reference : + * @Author : jimmy.zeng + * @CreateDate : 2020-06-02 9:27 + * @Modify: + **/ +@Data +public class WmsLocateModel implements Serializable { + + private static final long serialVersionUID = 2433931236774158401L; + + @ApiParam(value = "箱数") + public Long snBoxQty; + + @ApiParam(value = "最大包装数量") + public Integer maxPackageQty; + + @ApiParam(value = "库位利用率值") + public Double proportionValue; + + @ApiParam(value = "库位代码") + public String locateNo; + + @ApiParam(value = "库位名称") + public String locateName; + + @ApiParam(value = "存储区代码") + public String zoneNo; + + @ApiParam(value = "存储区名称") + public String zoneName; + + @ApiParam(value = "仓库代码") + public String whNo; + + @ApiParam(value = "仓库名称") + public String whNoName; + + @ApiParam(value = "组织代码") + public String organizeCode; + + @ApiParam(value = "库位利用率") + public Integer proportion; + + public WmsLocateModel(Long snBoxQty, Integer maxPackageQty, Double proportionValue, + String locateNo, String locateName, String zoneNo, + String zoneName, String whNo, String whNoName, String organizeCode) { + this.snBoxQty = snBoxQty; + this.maxPackageQty = maxPackageQty; + this.proportionValue = proportionValue; + this.locateNo = locateNo; + this.locateName = locateName; + this.zoneNo = zoneNo; + this.zoneName = zoneName; + this.whNo = whNo; + this.whNoName = whNoName; + this.organizeCode = organizeCode; + } +}