|
@@ -304,7 +304,8 @@
|
|
FROM payment_management pm
|
|
FROM payment_management pm
|
|
LEFT JOIN contract_management_info cmi on cmi.contract_no=pm.contract_no and cmi.comp_id=pm.comp_id and cmi.delete_flag='0'
|
|
LEFT JOIN contract_management_info cmi on cmi.contract_no=pm.contract_no and cmi.comp_id=pm.comp_id and cmi.delete_flag='0'
|
|
LEFT JOIN warehouse_base_info wbi on wbi.comp_id=pm.comp_id and wbi.warehouse_name=pm.warehouse_name and wbi.delete_flag = '0'
|
|
LEFT JOIN warehouse_base_info wbi on wbi.comp_id=pm.comp_id and wbi.warehouse_name=pm.warehouse_name and wbi.delete_flag = '0'
|
|
- LEFT JOIN identity_authentication_info iai on iai.comp_id=pm.comp_id and iai.customer_number_card=pm.customer_number_card and iai.delete_flag='0'
|
|
|
|
|
|
+ LEFT JOIN identity_authentication_info iai on iai.customer_number_card=pm.customer_number_card and iai.delete_flag='0'
|
|
|
|
+ left join common_company_identity cci on iai.id = cci.identity_id and cci.com_id=pm.comp_id and cci.delete_flag = '0'
|
|
WHERE
|
|
WHERE
|
|
pm.delete_flag = '0'
|
|
pm.delete_flag = '0'
|
|
and pm.status !='待结算'
|
|
and pm.status !='待结算'
|