| | |
| | | package com.vincent.rsf.server.manager.enums;
|
| | |
|
| | |
|
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
| | | import com.vincent.rsf.framework.common.SpringUtils;
|
| | | import com.vincent.rsf.framework.exception.CoolException;
|
| | |
|
| | | public enum LocStsType {
|
| | |
|
| | | //空板
|
| | |
| | | this.desc = desc;
|
| | | }
|
| | |
|
| | | // public long val() {
|
| | | // LocStsService service = SpringUtils.getBean(LocStsService.class);
|
| | | // LocSts locSts = service.getOne(new LambdaQueryWrapper<LocSts>().eq(LocSts::getLocSts, this.toString()));
|
| | | // if (locSts == null) {
|
| | | // throw new CoolException("LocStsType Error!");
|
| | | // }
|
| | | // return locSts.getId();
|
| | | // }
|
| | |
|
| | | public static LocStsType get(String el) {
|
| | | for (LocStsType value : LocStsType.values()) {
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | /**
|
| | | * @author Ryan
|
| | | * @date 2025/8/28
|
| | | * @description: RCS库位状态转换
|
| | | * @version 1.0
|
| | | */
|
| | | public static String getLocSts(String val) {
|
| | | if (val.equals(RcsLocStsType.LOC_STS_TYPE_D.type)) {
|
| | | return LocStsType.LOC_STS_TYPE_D.type;
|
| | | } else if (val.equals(RcsLocStsType.LOC_STS_TYPE_F.type)) {
|
| | | return LocStsType.LOC_STS_TYPE_F.type;
|
| | | } else if (val.equals(RcsLocStsType.LOC_STS_TYPE_S.type)) {
|
| | | return LocStsType.LOC_STS_TYPE_S.type;
|
| | | } else if (val.equals(RcsLocStsType.LOC_STS_TYPE_R.type)) {
|
| | | return LocStsType.LOC_STS_TYPE_R.type;
|
| | | } else if (val.equals(RcsLocStsType.LOC_STS_TYPE_X.type)) {
|
| | | return LocStsType.LOC_STS_TYPE_X.type;
|
| | | }
|
| | | return null;
|
| | | }
|
| | |
|
| | |
|
| | | }
|