fix: 子卷下线区送满卷任务

This commit is contained in:
2026-08-12 17:20:07 +08:00
parent 757ab83bee
commit e20c0f2168
13 changed files with 264 additions and 27 deletions

View File

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

View File

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