zhangyuewww преди 1 година
родител
ревизия
16c2b8483b
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/WarehousingOrderMapper.xml

+ 2 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/WarehousingOrderMapper.xml

@@ -304,7 +304,8 @@
         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 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
             pm.delete_flag = '0'
             and pm.status !='待结算'