From c206acfaedc69c390fb67daa81bc686f58a212ef Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期一, 27 十一月 2023 16:12:11 +0800 Subject: [PATCH] 提交配置信息2 --- igds-api-inte/src/main/java/com/ld/igds/sh/util/ApiShUtil.java | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 45 insertions(+), 0 deletions(-) diff --git a/igds-api-inte/src/main/java/com/ld/igds/sh/util/ApiShUtil.java b/igds-api-inte/src/main/java/com/ld/igds/sh/util/ApiShUtil.java index 88a5464..10cd8fe 100644 --- a/igds-api-inte/src/main/java/com/ld/igds/sh/util/ApiShUtil.java +++ b/igds-api-inte/src/main/java/com/ld/igds/sh/util/ApiShUtil.java @@ -15,6 +15,51 @@ @Component public class ApiShUtil { + /** + * 浠撳簱鐘舵�佽浆涓鸿揣浣嶇姸鎬� + * @param depotStatus + * @return + */ + public String getDepotStatus(String depotStatus){ + if(DepotStatus.STATUS_1.getCode().equals(depotStatus)){ + return "1"; + } + if(DepotStatus.STATUS_3.getCode().equals(depotStatus)){ + return "3"; + } + if(DepotStatus.STATUS_2.getCode().equals(depotStatus)){ + return "2"; + } + if(DepotStatus.STATUS_4.getCode().equals(depotStatus)){ + return "4"; + } + return "9"; + } + + public static String getGbDepotId(String depotId){ + switch (depotId) { + case "0P01": + return "91310114703439394M0020001001"; + case "0P02": + return "91310114703439394M0020002001"; + case "0P03": + return "91310114703439394M0020003001"; + case "0P04": + return "91310114703439394M0020004001"; + case "0P05": + return "91310114703439394M0020005001"; + case "0P06": + return "91310114703439394M0020006001"; + case "0P07": + return "91310114703439394M0020007001"; + case "0P08": + return "91310114703439394M0020005001"; + case "0P09": + return "91310114703439394M0020006001"; + default: + return depotId; + } + } /** * 鑾峰彇鍥剧墖鐨勪簩杩涘埗娴� -- Gitblit v1.9.3