| | |
| | | return null;
|
| | | }
|
| | |
|
| | | /** 根据状态码(type)取描述,如 F -> 在库 */
|
| | | public static String getDescByType(String type) {
|
| | | if (type == null || type.isEmpty()) return type;
|
| | | for (LocStsType value : LocStsType.values()) {
|
| | | if (type.trim().equals(value.type)) return value.desc;
|
| | | }
|
| | | return type;
|
| | | }
|
| | |
|
| | | /**
|
| | | * @author Ryan
|
| | | * @date 2025/8/28
|
| | |
| | | }
|
| | |
|
| | |
|
| | | /**
|
| | | * @author Ryan
|
| | | * @date 2025/8/28
|
| | | * @description: RCS库位状态转换
|
| | | * @version 1.0
|
| | | */
|
| | | public static String getRcsLocSts(String val) {
|
| | | if (val.equals(LocStsType.LOC_STS_TYPE_O.type)) {
|
| | | return RcsLocStsType.LOC_STS_TYPE_D.desc;
|
| | | } else if (val.equals(LocStsType.LOC_STS_TYPE_F.type)) {
|
| | | return RcsLocStsType.LOC_STS_TYPE_F.desc;
|
| | | } else if (val.equals(LocStsType.LOC_STS_TYPE_S.type)) {
|
| | | return RcsLocStsType.LOC_STS_TYPE_S.desc;
|
| | | } else if (val.equals(LocStsType.LOC_STS_TYPE_R.type)) {
|
| | | return RcsLocStsType.LOC_STS_TYPE_R.desc;
|
| | | } else if (val.equals(LocStsType.LOC_STS_TYPE_X.type)) {
|
| | | return RcsLocStsType.LOC_STS_TYPE_X.desc;
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | | }
|