From 3b3a2815feec0d2f436749ef450bb1a6eb4f12ca Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期二, 09 十二月 2025 14:28:01 +0800
Subject: [PATCH] 粮情检测提交
---
fzzy-igdss-web/src/main/java/com/fzzy/sys/manager/common/CommonManager.java | 19 +++++++++++++++++++
1 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/fzzy-igdss-web/src/main/java/com/fzzy/sys/manager/common/CommonManager.java b/fzzy-igdss-web/src/main/java/com/fzzy/sys/manager/common/CommonManager.java
index ffda277..da79a92 100644
--- a/fzzy-igdss-web/src/main/java/com/fzzy/sys/manager/common/CommonManager.java
+++ b/fzzy-igdss-web/src/main/java/com/fzzy/sys/manager/common/CommonManager.java
@@ -1,5 +1,6 @@
package com.fzzy.sys.manager.common;
+import com.fzzy.igds.constant.DepotType;
import com.fzzy.igds.domain.Depot;
import com.fzzy.igds.service.DepotService;
import com.fzzy.igds.service.DicService;
@@ -55,4 +56,22 @@
public List<SysDictData> getInoutType() {
return dicService.getInoutType();
}
+
+
+
+ /**
+ * 鏍规嵁浠撳簱缂栫爜鑾峰彇浠撳簱绫诲瀷
+ * @param depotId
+ * @return
+ */
+ public String getDepotTypeById(String depotId) {
+ String depotType = DepotType.TYPE_01.getCode();
+
+ Depot depot = depotService.getCacheDepot(ContextUtil.getCompanyId(), depotId);
+ if (null != depot && StringUtils.isNotEmpty(depot.getDepotType())) {
+ depotType = depot.getDepotType();
+ }
+
+ return depotType;
+ }
}
--
Gitblit v1.9.3