|
@@ -251,13 +251,15 @@
|
|
|
contract_manage.contract_Number,
|
|
|
contract_manage.house_Name,
|
|
|
frame_user.username as operater,
|
|
|
- property_registration.*
|
|
|
+ property_registration.*,
|
|
|
+ customer_management.id as customer_management_id
|
|
|
FROM
|
|
|
contract_manage
|
|
|
+ left join customer_management on customer_management.id = contract_manage.customer_management_id
|
|
|
LEFT JOIN property_registration ON property_registration.contract_manage_id = contract_manage.id
|
|
|
left join frame_user on frame_user.id=property_registration.operater_id
|
|
|
WHERE
|
|
|
- fund_collection_status =2
|
|
|
+ fund_collection_status =2 and contract_manage.contract_status != 3
|
|
|
<if test="record.buyerName != null and record.buyerName != ''">
|
|
|
and contract_manage.buyer_Name like concat('%',#{record.buyerName},'%')
|
|
|
|