feat: 子卷送到待检区任务
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user