【2009 天津麦格纳WMS-报表-库位利用率】

yun-zuoyi
曾贞一 5 years ago
parent 2e434bc859
commit 31c26017c1

@ -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;
}
}
}

@ -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;
}
}
Loading…
Cancel
Save