|
@@ -190,12 +190,14 @@
|
|
|
hpa.subcontractor_id as "subcontractorId",
|
|
hpa.subcontractor_id as "subcontractorId",
|
|
|
a.is_through_platform AS "isThroughPlatform",
|
|
a.is_through_platform AS "isThroughPlatform",
|
|
|
has.file_path_prefix as "filePathPrefix",
|
|
has.file_path_prefix as "filePathPrefix",
|
|
|
|
|
+ hsc.check_file AS "checkFile",
|
|
|
ho.id as "orderId",
|
|
ho.id as "orderId",
|
|
|
a.cp_id as "cpId",
|
|
a.cp_id as "cpId",
|
|
|
a.service_fee as "serviceFee"
|
|
a.service_fee as "serviceFee"
|
|
|
FROM hlw_subcontractor_account_flow a
|
|
FROM hlw_subcontractor_account_flow a
|
|
|
left join hlw_payment hpa on a.payment_id=hpa.id
|
|
left join hlw_payment hpa on a.payment_id=hpa.id
|
|
|
left join hlw_payment_detail hp on hp.payment_id=a.payment_id
|
|
left join hlw_payment_detail hp on hp.payment_id=a.payment_id
|
|
|
|
|
+ left join hlw_service_check hsc on hsc.id = hpa.service_check_id
|
|
|
left join hlw_order ho on ho.id=hp.order_id
|
|
left join hlw_order ho on ho.id=hp.order_id
|
|
|
left join hlw_requirement hr on hr.id=ho.requirement_id
|
|
left join hlw_requirement hr on hr.id=ho.requirement_id
|
|
|
left join hlw_invoice hi on hi.id=a.invoice_id
|
|
left join hlw_invoice hi on hi.id=a.invoice_id
|