|
|
@@ -1,39 +1,39 @@
|
|
|
-package com.sckw.core.model.enums;
|
|
|
-
|
|
|
-import lombok.Getter;
|
|
|
-
|
|
|
-/**
|
|
|
- * 物流合同业务类型(新增页「合同类型」)
|
|
|
- */
|
|
|
-@Getter
|
|
|
-public enum LogisticsTransportBizTypeEnum {
|
|
|
-
|
|
|
- /** 贸易运输:沿用原系统逻辑 */
|
|
|
- TRADE_TRANSPORT(1, "贸易运输"),
|
|
|
- /** 原矿转运:不录入运价,使用允许误差做装卸货量比对 */
|
|
|
- RAW_ORE_TRANSFER(2, "原矿转运");
|
|
|
-
|
|
|
- private final int code;
|
|
|
- private final String label;
|
|
|
-
|
|
|
- LogisticsTransportBizTypeEnum(int code, String label) {
|
|
|
- this.code = code;
|
|
|
- this.label = label;
|
|
|
- }
|
|
|
-
|
|
|
- public static String getLabelByCode(Integer code) {
|
|
|
- if (code == null) {
|
|
|
- return null;
|
|
|
- }
|
|
|
- for (LogisticsTransportBizTypeEnum e : values()) {
|
|
|
- if (e.code == code) {
|
|
|
- return e.label;
|
|
|
- }
|
|
|
- }
|
|
|
- return null;
|
|
|
- }
|
|
|
-
|
|
|
- public static boolean isRawOreTransfer(Integer code) {
|
|
|
- return code != null && code == RAW_ORE_TRANSFER.code;
|
|
|
- }
|
|
|
-}
|
|
|
+//package com.sckw.core.model.enums;
|
|
|
+//
|
|
|
+//import lombok.Getter;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * 物流合同业务类型(新增页「合同类型」)
|
|
|
+// */
|
|
|
+//@Getter
|
|
|
+//public enum LogisticsTransportBizTypeEnum {
|
|
|
+//
|
|
|
+// /** 贸易运输:沿用原系统逻辑 */
|
|
|
+// TRADE_TRANSPORT(1, "贸易运输"),
|
|
|
+// /** 原矿转运:不录入运价,使用允许误差做装卸货量比对 */
|
|
|
+// RAW_ORE_TRANSFER(2, "原矿转运");
|
|
|
+//
|
|
|
+// private final int code;
|
|
|
+// private final String label;
|
|
|
+//
|
|
|
+// LogisticsTransportBizTypeEnum(int code, String label) {
|
|
|
+// this.code = code;
|
|
|
+// this.label = label;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public static String getLabelByCode(Integer code) {
|
|
|
+// if (code == null) {
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+// for (LogisticsTransportBizTypeEnum e : values()) {
|
|
|
+// if (e.code == code) {
|
|
|
+// return e.label;
|
|
|
+// }
|
|
|
+// }
|
|
|
+// return null;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public static boolean isRawOreTransfer(Integer code) {
|
|
|
+// return code != null && code == RAW_ORE_TRANSFER.code;
|
|
|
+// }
|
|
|
+//}
|