From 83b51a5a0774ea8ecb9a06304af3b956a21307c8 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期六, 08 三月 2025 09:06:55 +0800 Subject: [PATCH] CUT库条码T开头,截取后10位 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/enums/LocTypeHeightType.java | 75 +++++++++++++++++++++---------------- 1 files changed, 42 insertions(+), 33 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/enums/LocTypeHeightType.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/enums/LocTypeHeightType.java index a93ffab..ea45f90 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/enums/LocTypeHeightType.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/entity/enums/LocTypeHeightType.java @@ -1,33 +1,42 @@ -package com.zy.asrs.wms.asrs.entity.enums; - -/** - * 搴撲綅楂樺害绫诲瀷 - */ -public enum LocTypeHeightType { - - LOW(1, "low", "浣庡簱浣�"), - MIDDLE(2, "middle", "涓簱浣�"), - HEIGHT(3, "height", "楂樺簱浣�"), - ; - - - public Integer id; - public String flag; - public String desc; - - LocTypeHeightType(Integer id, String flag, String desc) { - this.id = id; - this.flag = flag; - this.desc = desc; - } - - public static LocTypeHeightType get(Integer id) { - for (LocTypeHeightType value : LocTypeHeightType.values()) { - if (value.id.equals(id)) { - return value; - } - } - return null; - } - -} +package com.zy.asrs.wms.asrs.entity.enums; + +/** + * 搴撲綅楂樺害绫诲瀷 + */ +public enum LocTypeHeightType { + + LOW(1, "low", "浣庡簱浣�"), + MIDDLE(2, "middle", "涓簱浣�"), + HEIGHT(3, "height", "楂樺簱浣�"), + ; + + + public Integer id; + public String flag; + public String desc; + + LocTypeHeightType(Integer id, String flag, String desc) { + this.id = id; + this.flag = flag; + this.desc = desc; + } + + public static LocTypeHeightType get(Integer id) { + for (LocTypeHeightType value : LocTypeHeightType.values()) { + if (value.id.equals(id)) { + return value; + } + } + return null; + } + + public static LocTypeHeightType get(String flag) { + for (LocTypeHeightType value : LocTypeHeightType.values()) { + if (value.flag.equals(flag)) { + return value; + } + } + return null; + } + +} -- Gitblit v1.9.1