|
@@ -30,8 +30,7 @@ FROM |
|
|
BPA_Organize AS a |
|
|
BPA_Organize AS a |
|
|
JOIN BPA_Order AS b ON a.Id= b.OrgId |
|
|
JOIN BPA_Order AS b ON a.Id= b.OrgId |
|
|
WHERE |
|
|
WHERE |
|
|
b.PayMode <= 4 |
|
|
|
|
|
AND ( b.TransactionId IS NOT NULL OR b.TransactionId != '' ) |
|
|
|
|
|
|
|
|
( b.TransactionId IS NOT NULL OR b.TransactionId != '' ) |
|
|
AND ( b.TradeNo IS NOT NULL OR b.TradeNo != '' )"); |
|
|
AND ( b.TradeNo IS NOT NULL OR b.TradeNo != '' )"); |
|
|
if (input.OrgId.HasValue) |
|
|
if (input.OrgId.HasValue) |
|
|
{ |
|
|
{ |
|
@@ -181,8 +180,7 @@ FROM |
|
|
BPA_Organize AS a |
|
|
BPA_Organize AS a |
|
|
JOIN BPA_Order AS b ON a.Id= b.OrgId |
|
|
JOIN BPA_Order AS b ON a.Id= b.OrgId |
|
|
WHERE |
|
|
WHERE |
|
|
b.PayMode <= 4 |
|
|
|
|
|
AND ( b.TransactionId IS NOT NULL OR b.TransactionId != '' ) |
|
|
|
|
|
|
|
|
( b.TransactionId IS NOT NULL OR b.TransactionId != '' ) |
|
|
AND ( b.TradeNo IS NOT NULL OR b.TradeNo != '' )"); |
|
|
AND ( b.TradeNo IS NOT NULL OR b.TradeNo != '' )"); |
|
|
|
|
|
|
|
|
if (input.OrgId.HasValue) |
|
|
if (input.OrgId.HasValue) |
|
|