From 74bf566485b146642c66c2c1d21294bf90e3551f Mon Sep 17 00:00:00 2001 From: lyt Date: Fri, 12 Jul 2019 15:00:34 +0800 Subject: [PATCH] =?UTF-8?q?Trippest=E7=BB=93=E7=AE=97=E6=B1=87=E6=80=BB:?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=A4=9A=E5=9C=B0=E4=BA=A7=E5=93=81=E9=A2=84?= =?UTF-8?q?=E8=AE=A2=E6=97=A0=E6=B3=95=E6=8C=89=E7=9B=AE=E7=9A=84=E5=9C=B0?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../trippestOrderSync/models/vendor_money_model.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/webht/third_party/trippestOrderSync/models/vendor_money_model.php b/webht/third_party/trippestOrderSync/models/vendor_money_model.php index 99e606b0..9770e447 100644 --- a/webht/third_party/trippestOrderSync/models/vendor_money_model.php +++ b/webht/third_party/trippestOrderSync/models/vendor_money_model.php @@ -71,8 +71,12 @@ class Vendor_money_model extends CI_Model { ) and CGI_Checked=1 and GRI_OrderType=227002 - - and COLI_sourcetype=$sourcetype + and exists ( + select 1 from BIZ_ConfirmLineDetail where COLD_COLI_SN=coli.COLI_SN + and DeleteFlag=0 + and COLD_PlanVEI_SN=$vendor + ) + -- and COLI_sourcetype=$sourcetype ) as cgi_group ) as sum_opi group by sum_opi.COLI_OPI_ID