From 83b2c23efd1c1ba3d995193b3240f3d868f4d592 Mon Sep 17 00:00:00 2001
From: zyx <zyx123456>
Date: 星期二, 22 八月 2023 16:28:34 +0800
Subject: [PATCH] AGV出入库作业 库存汇总页面 库存规则 分析页加上AGV数据 AGV库存明细统计 AGV库位地图

---
 src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java
index 4f2a66d..6fe345c 100644
--- a/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/DocTypeServiceImpl.java
@@ -19,7 +19,13 @@
         if (Cools.isEmpty(docName)) {
             return null;
         }
-        DocType docType = this.selectOne(new EntityWrapper<DocType>().eq("doc_name", docName));
+        DocType docType = null;
+        try {
+            docType = this.selectById(docName);
+        } catch (Exception ignore) {}
+        if (docType == null) {
+            docType = this.selectOne(new EntityWrapper<DocType>().eq("doc_name", docName));
+        }
         if (docType == null) {
             long docId = 1L;
             DocType last = this.selectOne(new EntityWrapper<DocType>().orderBy("doc_id", false));

--
Gitblit v1.9.1