package com.zy.api.enums; /** * 物料所属库位类型 * @author Ryan * @date 2025/12/6 10:41 * @return null */ public enum MatLocType { /** 小件 */ AUTOMATED("12", "小件"), /** 中件 */ SO_HOLDING("13", "中件"), /** 大件 */ EO_HOLDING("14", "滤芯"); public String type; public String desc; MatLocType(String type, String desc) { this.type = type; this.desc = desc; } public static String getTagName(String type) { if (type.equals(MatLocType.AUTOMATED.type)) { return MatLocType.AUTOMATED.desc; } else if (type.equals(MatLocType.SO_HOLDING.type)) { return MatLocType.SO_HOLDING.desc; } else if (type.equals(MatLocType.EO_HOLDING.type)) { return MatLocType.EO_HOLDING.desc; } else { return null; } } }