|
|
@@ -180,7 +180,7 @@
|
|
|
<select id="getReceivableAccountSum" resultType="Map">
|
|
|
SELECT SUM
|
|
|
( CASE WHEN tmai.acc_item_type = '账款类型-应收' THEN tmai.amt_should ELSE 0 END ) AS receivable,
|
|
|
- SUM ( CASE WHEN tmai.acc_item_type = '账款类型-收款' THEN tmai.amt_should ELSE 0 END ) AS receipt
|
|
|
+ SUM ( CASE WHEN tmai.acc_item_type = '账款类型-收款' THEN tmai.amt_rec ELSE 0 END ) AS receipt
|
|
|
FROM
|
|
|
dkic_b.t_mac_account_item tmai
|
|
|
WHERE
|