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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
| package com.consum.base.core.utils;
|
| import java.util.HashMap;
| import java.util.Map;
|
| /**
| * @author asus
| * @version 1.0
| * @description: 出入库明细状态
| * @date 2023/11/14 16:19
| */
| public class MixType {
|
| private final static Map<String, String> map = new HashMap<>();
|
| static {
| // 单据类型 1 采购2 调拨 3出库4部门分发
| // 1=调增;2=调减
| //1采购入库
| map.put("1" + "1", "1");
| //2退还入库
| map.put("2" + "1", "2");
| //3调拨入库
| map.put("3" + "1", "3");
| //4盘盈入库
| map.put("7" + "1", "4");
| //5申领出库
| map.put("4" + "2", "5");
| //6调拨出库
| map.put("2" + "2", "6");
| //7盘亏出库
| map.put("7" + "2", "7");
| //8报废出库
| map.put("5" + "2", "8");
| //9其他出库
| map.put("3" + "2", "9");
| }
|
| public static String getMixType(String key) {
| return map.get(key);
| }
|
|
| }
|
|