| | |
| | | */ |
| | | public enum DepotStatus { |
| | | |
| | | STATUS_01("01", "空仓"), |
| | | STATUS_02("02", "满仓"), |
| | | STATUS_03("03", "入库中"), |
| | | STATUS_04("04", "出库中"), |
| | | STATUS_05("05", "气调中"), |
| | | STATUS_06("06", "熏蒸中"), |
| | | STATUS_07("07", "通风中"), |
| | | STATUS_09("09", "温控中"), |
| | | STATUS_08("08", "维修中"); |
| | | STATUS_1("1", "空仓"), |
| | | STATUS_2("2", "入库中"), |
| | | STATUS_3("3", "满仓"), |
| | | STATUS_4("4", "出库中"), |
| | | STATUS_31("31", "满仓-气调中"), |
| | | STATUS_32("32", "满仓-熏蒸中"), |
| | | STATUS_33("33", "满仓-通风中"), |
| | | STATUS_34("34", "满仓-温控中"), |
| | | STATUS_9("9", "其他"); |
| | | |
| | | private String code; |
| | | private String msg; |
| | |
| | | public static String getMsg(String code) { |
| | | if(null == code) return null; |
| | | |
| | | if(DepotStatus.STATUS_01.getCode().equals(code)) return DepotStatus.STATUS_01.getMsg(); |
| | | if(DepotStatus.STATUS_02.getCode().equals(code)) return DepotStatus.STATUS_02.getMsg(); |
| | | if(DepotStatus.STATUS_03.getCode().equals(code)) return DepotStatus.STATUS_03.getMsg(); |
| | | if(DepotStatus.STATUS_04.getCode().equals(code)) return DepotStatus.STATUS_04.getMsg(); |
| | | if(DepotStatus.STATUS_05.getCode().equals(code)) return DepotStatus.STATUS_05.getMsg(); |
| | | if(DepotStatus.STATUS_06.getCode().equals(code)) return DepotStatus.STATUS_06.getMsg(); |
| | | if(DepotStatus.STATUS_07.getCode().equals(code)) return DepotStatus.STATUS_07.getMsg(); |
| | | if(DepotStatus.STATUS_08.getCode().equals(code)) return DepotStatus.STATUS_08.getMsg(); |
| | | if (DepotStatus.STATUS_1.getCode().equals(code)) return DepotStatus.STATUS_1.getMsg(); |
| | | if (DepotStatus.STATUS_2.getCode().equals(code)) return DepotStatus.STATUS_2.getMsg(); |
| | | if (DepotStatus.STATUS_3.getCode().equals(code)) return DepotStatus.STATUS_3.getMsg(); |
| | | if (DepotStatus.STATUS_4.getCode().equals(code)) return DepotStatus.STATUS_4.getMsg(); |
| | | if (DepotStatus.STATUS_31.getCode().equals(code)) return DepotStatus.STATUS_31.getMsg(); |
| | | if (DepotStatus.STATUS_32.getCode().equals(code)) return DepotStatus.STATUS_32.getMsg(); |
| | | if (DepotStatus.STATUS_33.getCode().equals(code)) return DepotStatus.STATUS_33.getMsg(); |
| | | if (DepotStatus.STATUS_34.getCode().equals(code)) return DepotStatus.STATUS_34.getMsg(); |
| | | |
| | | return DepotStatus.STATUS_9.getMsg(); |
| | | } |
| | | |
| | | |
| | | public static String getGBCode(String code) { |
| | | if (null == code) DepotStatus.STATUS_9.getCode(); |
| | | |
| | | if (DepotStatus.STATUS_31.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_32.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_33.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | if (DepotStatus.STATUS_34.equals(code)) return DepotStatus.STATUS_3.getCode(); |
| | | |
| | | return code; |
| | | } |
| | | |
| | | |
| | | } |