fix: 子卷下线区送满卷任务
This commit is contained in:
@@ -12,34 +12,34 @@ public enum BoxPointStatusEnum {
|
||||
/**
|
||||
* 空位
|
||||
*/
|
||||
EMPTY(1, "空位"),
|
||||
EMPTY("1", "空位"),
|
||||
/**
|
||||
* 空载具
|
||||
*/
|
||||
EMPTY_CONTAINER(2, "空载具"),
|
||||
EMPTY_CONTAINER("2", "空载具"),
|
||||
/**
|
||||
* 有子卷
|
||||
*/
|
||||
HAS_SUB_ROLL(3, "有子卷"),
|
||||
HAS_SUB_ROLL("3", "有子卷"),
|
||||
/**
|
||||
* 合格品
|
||||
*/
|
||||
QUALIFIED(4, "合格品"),
|
||||
QUALIFIED("4", "合格品"),
|
||||
/**
|
||||
* 管制品
|
||||
*/
|
||||
CONTROLLED(5, "管制品");
|
||||
CONTROLLED("5", "管制品");
|
||||
|
||||
/**
|
||||
* 字典键值
|
||||
*/
|
||||
private final Integer code;
|
||||
private final String code;
|
||||
/**
|
||||
* 字典标签
|
||||
*/
|
||||
private final String desc;
|
||||
|
||||
BoxPointStatusEnum(Integer code, String desc) {
|
||||
BoxPointStatusEnum(String code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
@@ -49,7 +49,7 @@ public enum BoxPointStatusEnum {
|
||||
* @param code 编码
|
||||
* @return 匹配的枚举,未找到返回null
|
||||
*/
|
||||
public static BoxPointStatusEnum getByCode(Integer code) {
|
||||
public static BoxPointStatusEnum getByCode(String code) {
|
||||
for (BoxPointStatusEnum statusEnum : values()) {
|
||||
if (statusEnum.getCode().equals(code)) {
|
||||
return statusEnum;
|
||||
|
||||
@@ -13,28 +13,28 @@ public enum BoxPointTypeEnum {
|
||||
/**
|
||||
* 下线点
|
||||
*/
|
||||
OFFLINE_POINT(1, "下线点"),
|
||||
OFFLINE_POINT("1", "下线点"),
|
||||
/**
|
||||
* 待检点
|
||||
*/
|
||||
INSPECTION_PENDING_POINT(2, "待检点"),
|
||||
INSPECTION_PENDING_POINT("2", "待检点"),
|
||||
/**
|
||||
* 不合格点
|
||||
*/
|
||||
UNQUALIFIED_POINT(3, "不合格点"),
|
||||
UNQUALIFIED_POINT("3", "不合格点"),
|
||||
/**
|
||||
* 装箱点
|
||||
*/
|
||||
PACKING_POINT(4, "装箱点"),
|
||||
PACKING_POINT("4", "装箱点"),
|
||||
/**
|
||||
* 装箱对接点
|
||||
*/
|
||||
PACKING_DOCK_POINT(5, "装箱对接点");
|
||||
PACKING_DOCK_POINT("5", "装箱对接点");
|
||||
|
||||
private final Integer code;
|
||||
private final String code;
|
||||
private final String desc;
|
||||
|
||||
BoxPointTypeEnum(Integer code, String desc) {
|
||||
BoxPointTypeEnum(String code, String desc) {
|
||||
this.code = code;
|
||||
this.desc = desc;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public enum BoxPointTypeEnum {
|
||||
* @param code 字典键值
|
||||
* @return 匹配枚举,无匹配返回null
|
||||
*/
|
||||
public static BoxPointTypeEnum getByCode(Integer code) {
|
||||
public static BoxPointTypeEnum getByCode(String code) {
|
||||
for (BoxPointTypeEnum item : values()) {
|
||||
if (item.getCode().equals(code)) {
|
||||
return item;
|
||||
|
||||
Reference in New Issue
Block a user