From 4cfaac76490c1391237483329719bc6abd4392af Mon Sep 17 00:00:00 2001
From: CZT <czt18638530771@163.com>
Date: 星期二, 29 八月 2023 20:32:00 +0800
Subject: [PATCH] 调整代码
---
igds-core/src/main/java/com/ld/igds/data/ConfigGasImg.java | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/igds-core/src/main/java/com/ld/igds/data/ConfigGasImg.java b/igds-core/src/main/java/com/ld/igds/data/ConfigGasImg.java
index e21e671..91b3d21 100644
--- a/igds-core/src/main/java/com/ld/igds/data/ConfigGasImg.java
+++ b/igds-core/src/main/java/com/ld/igds/data/ConfigGasImg.java
@@ -22,8 +22,9 @@
public class ConfigGasImg {
/**
- * 鍥剧墖鐨勫皝瑁呰鍒欙細浠撳簱缂栫爜.img.png --鐓х墖
- * 鍥剧墖鐨勫皝瑁呰鍒欙細鍒嗗簱缂栫爜.img.png --榛樿鐓х墖
+ * gas.mapImg.5318_001.img=5318_001.png
+ * 鍥剧墖鐨勫皝瑁呰鍒欙細gas.mapImg.companyId_浠撳簱缂栫爜.img.png --鐓х墖
+ * 鍥剧墖鐨勫皝瑁呰鍒欙細gas.mapImg.companyId_鍒嗗簱缂栫爜.img.png --榛樿鐓х墖
*/
private Map<String, GasImg> mapImg;
@@ -39,12 +40,16 @@
Map<String, GasImg> result = new HashMap<>();
Map<String, GasImg> all = this.getMapImg();
if (null == depotList || null == all) return result;
+ String companyId = depotList.get(0).getCompanyId();
GasImg temp;
for (Depot d : depotList) {
- temp = all.get(d.getId());
+ //鍏堜粠閰嶇疆涓幏鍙�
+ temp = all.get(companyId + "_" + d.getId());
+
if (null == temp) {
temp = all.get(deptId);
}
+
result.put(d.getId(), temp);
}
return result;
--
Gitblit v1.9.3