|
@@ -40,8 +40,6 @@
|
|
|
(select sum(cd.arrive_amount) from biz_collection_detail cd left join biz_collection c on c.id =
|
|
|
cd.collection_id where cd.deleted = 0 and c.status = 1 and cd.contract_detail_id = t1.contract_detail_id)
|
|
|
arrived
|
|
|
- -- (select sum(payment_amount) from biz_payment_detail pd where pd.deleted = 0
|
|
|
- -- and pd.contract_detail_id = t1.contract_detail_id) payment
|
|
|
FROM biz_payment_detail t1
|
|
|
left join biz_task_type t2 on t2.id = t1.task_type_id
|
|
|
left join biz_archive_input_detail t3 on t1.contract_detail_id = t3.id
|