Commit 83c49aa0 by 王军业

【统计值小数位1】

1 parent 730a443f
......@@ -759,7 +759,7 @@
-- <!--(select cast(total_recv_amount_view.total_recv_amount as decimal(18,2)) from total_recv_amount_view where tb_contract.contract_unid=total_recv_amount_view.contract_unid) as total_receive_amount ,-->
(cast(CASE WHEN contract_amount IS NULL THEN 0 ELSE contract_amount END as decimal(18,2))-(select cast(CASE WHEN total_reback_view.sum IS NULL THEN 0 ELSE total_reback_view.sum END as decimal(18,2)) from total_reback_view where total_reback_view.contract_unid=tb_contract.contract_unid)-cast(CASE WHEN deduct_amount IS NULL THEN 0 ELSE deduct_amount end as decimal(18,2))-cast(CASE WHEN stop_amount IS NULL THEN 0 ELSE stop_amount END as decimal(18,2))
-cast(CASE WHEN exemptions_amount IS NULL THEN 0 ELSE exemptions_amount END as decimal(18,2))-cast(CASE WHEN bad_amount IS NULL THEN 0 ELSE bad_amount END as decimal(18,2))) as contract_remain,
(select receive_amount_view.leave_amount_point from receive_amount_view where receive_amount_view.contract_unid=tb_contract.contract_unid) as total_amount_remain
(select cast(receive_amount_view.leave_amount_point as decimal(18,2)) from receive_amount_view where receive_amount_view.contract_unid=tb_contract.contract_unid) as total_amount_remain
from tb_contract where 1=1
<if test="contract_unid !=null and contract_unid !=''">
and
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!