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 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); } }