From 004bea4396372a9495171c4a02fd652a1c68a3bf Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 19 Aug 2022 08:57:34 +0800
Subject: [PATCH] 修复当landType为0时,判定为空因此不执行sql语句的问题

---
 src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml b/src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml
index 6bb1899..f67f9c9 100644
--- a/src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml
+++ b/src/main/java/org/springblade/modules/processInv/mapper/ProcessInvMapper.xml
@@ -35,9 +35,16 @@
         </if>
     </select>
 
-    <select id="selectBy2Id" resultType="org.springblade.modules.processInv.entity.ProcessInv">
+    <select id="selectBySPId" resultType="org.springblade.modules.processInv.entity.ProcessInv">
         SELECT id,strain_id,product_id,product_inventory_num,create_time,update_user,update_time,status,is_deleted
-        FROM sys_process_inv WHERE strain_id = #{strainId} AND product_id = #{productId}
+        FROM sys_process_inv
+        WHERE is_deleted = 0 AND strain_id = #{strainId} AND product_id = #{productId}
+    </select>
+
+    <select id="selectBySFId" resultType="org.springblade.modules.processInv.entity.ProcessInv">
+        SELECT id,strain_id,product_id,product_inventory_num,create_time,update_user,update_time,status,is_deleted
+        FROM sys_process_inv
+        WHERE is_deleted = 0 AND strain_id = #{strainId} AND product_id = #{fpsId}
     </select>
 
     <insert id="add">

--
Gitblit v1.9.3