feat: 子卷送到待检区任务

This commit is contained in:
2026-08-13 15:04:14 +08:00
parent e20c0f2168
commit 6db59d422d
13 changed files with 148 additions and 33 deletions

View File

@@ -0,0 +1,41 @@
package cn.code.nl.module.lms.enums;
import lombok.Getter;
/**
*
* @Author: liyongde
* @Date: 2026/8/13 10:17
*/
@Getter
public enum PackageTaskTypeEnum {
SUB_ROLL_DOWN_AGV("010601", "子卷->待检AGV任务"),
;
/**
* 字典键值
*/
private final String code;
/**
* 字典标签
*/
private final String desc;
PackageTaskTypeEnum(String code, String desc) {
this.code = code;
this.desc = desc;
}
/**
* 根据code获取对应枚举
* @param code 编码
* @return 匹配的枚举未找到返回null
*/
public static PackageTaskTypeEnum getByCode(String code) {
for (PackageTaskTypeEnum typeEnum : values()) {
if (typeEnum.getCode().equals(code)) {
return typeEnum;
}
}
return null;
}
}