package com.fzzy.igds.constant; /** * @Description 质量巡检枚举 * @Author CZT * @Date 2025/11/25 15:32 */ public enum CheckType { TYPE_01("01", "入仓验收"), TYPE_02("02", "出仓检验"), TYPE_03("03", "3月末普检"), TYPE_04("04", "9月末普检"), TYPE_05("05", "入库初检"), TYPE_06("06", "月度检查"), TYPE_07("07", "3月末库内普查"), TYPE_08("08", "9月末库内普查"); private String code; private String msg; CheckType(String code, String msg) { this.code = code; this.msg = msg; } public String getCode() { return code; } public String getMsg() { return msg; } public static String getMsg(String code) { if (null == code) return null; if (CheckType.TYPE_01.getCode().equals(code)) return CheckType.TYPE_01.getMsg(); if (CheckType.TYPE_02.getCode().equals(code)) return CheckType.TYPE_02.getMsg(); if (CheckType.TYPE_03.getCode().equals(code)) return CheckType.TYPE_03.getMsg(); if (CheckType.TYPE_04.getCode().equals(code)) return CheckType.TYPE_04.getMsg(); if (CheckType.TYPE_05.getCode().equals(code)) return CheckType.TYPE_05.getMsg(); if (CheckType.TYPE_06.getCode().equals(code)) return CheckType.TYPE_06.getMsg(); if (CheckType.TYPE_07.getCode().equals(code)) return CheckType.TYPE_07.getMsg(); if (CheckType.TYPE_08.getCode().equals(code)) return CheckType.TYPE_08.getMsg(); return code; } }