1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| package cn.iocoder.yudao.module.mes.enums.wm;
|
| import cn.iocoder.yudao.framework.common.core.ArrayValuable;
| import lombok.AllArgsConstructor;
| import lombok.Getter;
|
| import java.util.Arrays;
|
| /**
| * MES 杂项入库单类型枚举
| * <p>
| * 与字典 {@code mes_wm_misc_receipt_type} 保持一致
| */
| @Getter
| @AllArgsConstructor
| public enum MesWmMiscReceiptTypeEnum implements ArrayValuable<Integer> {
|
| ADJUST(1, "库存调整"),
| CONCESSION(2, "让步放行入库"),
| SCRAP(3, "报废入库");
|
| private final Integer type;
| private final String name;
|
| @Override
| public Integer[] array() {
| return Arrays.stream(values()).map(MesWmMiscReceiptTypeEnum::getType).toArray(Integer[]::new);
| }
|
| }
|
|