From b0c345d2a74f47e5c34617051bcd61becde11b96 Mon Sep 17 00:00:00 2001
From: yaowanxin <3588231647@qq.com>
Date: 星期五, 15 八月 2025 14:09:59 +0800
Subject: [PATCH] 业务流程修改

---
 src/main/resources/mapper/warehouse/DocumentationMapper.xml |   11 ++++-------
 1 files changed, 4 insertions(+), 7 deletions(-)

diff --git a/src/main/resources/mapper/warehouse/DocumentationMapper.xml b/src/main/resources/mapper/warehouse/DocumentationMapper.xml
index 1d015bb..768e272 100644
--- a/src/main/resources/mapper/warehouse/DocumentationMapper.xml
+++ b/src/main/resources/mapper/warehouse/DocumentationMapper.xml
@@ -6,7 +6,7 @@
 
     <resultMap id="BaseResultMap" type="com.ruoyi.warehouse.pojo.Documentation">
             <id property="id" column="id" jdbcType="BIGINT"/>
-            <result property="categoryName" column="category_name" jdbcType="VARCHAR"/>
+            <result property="documentClassificationId" column="document_classification_id"/>
             <result property="docName" column="doc_name" jdbcType="VARCHAR"/>
             <result property="docNumber" column="doc_number" jdbcType="BIGINT"/>
             <result property="year" column="year" jdbcType="BIGINT"/>
@@ -42,8 +42,8 @@
     <select id="listPage" resultType="com.ruoyi.warehouse.pojo.Documentation">
         select * from documentation
         where 1=1
-        <if test="documentation.categoryName != null">
-            and category_name = #{documentation.categoryName}
+        <if test="documentation.documentClassificationId != null">
+            and document_classification_id = #{documentation.documentClassificationId}
         </if>
         <if test="documentation.docName != null">
             and doc_name = #{documentation.docName}
@@ -51,14 +51,11 @@
         <if test="documentation.docNumber != null">
             and doc_number = #{documentation.docNumber}
         </if>
-        <if test="documentation.warehouse_goods_shelves_rowcol_id != null">
-            and warehouse_goods_shelves_rowcol_id = #{documentation.warehouseGoodsShelvesRowcolId}
-        </if>
     </select>
     <select id="list" resultType="com.ruoyi.warehouse.pojo.Documentation">
         select * from documentation t1
               left join warehouse_goods_shelves_rowcol t2 on t1.warehouse_goods_shelves_rowcol_id = t2.id
               left join warehouse_goods_shelves t3 on t2.warehouse_goods_shelves_id = t3.id
-              left join warehouse t4 on t2.warehouse_id = t4.id
+              left join warehouse t4 on t3.warehouse_id = t4.id
     </select>
 </mapper>

--
Gitblit v1.9.3