From 0afc69d88161d2647f9dc8f07377b2126e4a258d Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 02 十一月 2021 15:17:14 +0800
Subject: [PATCH] 1
---
src/main/resources/mapper/OutStockMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/OutStockMapper.xml b/src/main/resources/mapper/OutStockMapper.xml
index 183ac69..c4b6c79 100644
--- a/src/main/resources/mapper/OutStockMapper.xml
+++ b/src/main/resources/mapper/OutStockMapper.xml
@@ -61,7 +61,7 @@
b.FAdd,b.Fflag_finish, a.Fname, a.Fmodel
from OutStockBillEntry a left join OutStockBill b on a.FInterID = b.FInterID
where 1=1
- and b.Fflag_finish != 1
+ and b.Fflag_finish != 1 and a.FQty > a.FAmount
<if test="FSourceBillNo!=null and FSourceBillNo!='' ">
and a.FSourceBillNo = #{FSourceBillNo}
</if>
@@ -77,6 +77,13 @@
from OutStockBillEntry a
left join OutStockBill b on a.FInterID = b.FInterID
where 1=1
+ and b.Fflag_finish != 1 and a.FQty > a.FAmount
+ <if test="FSourceBillNo!=null and FSourceBillNo!='' ">
+ and a.FSourceBillNo = #{FSourceBillNo}
+ </if>
+ <if test="FBillNo != null and FBillNo != ''">
+ and b.FBillNo = #{FBillNo}
+ </if>
</select>
<select id="queryMatnrWithBillNo" resultMap="OutStockResultMap">
--
Gitblit v1.9.1