|
|
@@ -322,17 +322,16 @@
|
|
|
CASE WHEN a.is_through_platform=1 THEN hp.duty_paragraph else hpc.duty_paragraph end AS "dutyParagraph",
|
|
|
hs.name AS "subcontractorName",
|
|
|
a.amount AS "amount",
|
|
|
- hsad.service_fee AS "serviceFee",
|
|
|
+ a.service_fee AS "serviceFee",
|
|
|
a.business_time AS "generateTime",
|
|
|
CASE WHEN a.is_through_platform=1 THEN hp.business_license else hpc.business_license end AS "businessLicense",
|
|
|
CASE WHEN a.is_through_platform=1 THEN hr.subcontract else hr.service_contract end AS "serviceContract",
|
|
|
2 as "systemType"
|
|
|
- FROM hw_platform_company_account_detail a
|
|
|
+ FROM hw_subcontractor_account_detail a
|
|
|
left join hw_requirement hr on hr.id=a.requirement_id
|
|
|
left join hw_platform_company hpc on hpc.id=hr.platform_company_id
|
|
|
left join hw_platform hp on hp.id=hpc.platform_id
|
|
|
- left join hw_subcontractor_account_detail hsad on hsad.payment_id=a.payment_id
|
|
|
- left join hw_subcontractor_account hsa on hsa.id=hsad.subcontractor_account_id
|
|
|
+ left join hw_subcontractor_account hsa on hsa.id=a.subcontractor_account_id
|
|
|
left join hw_subcontractor hs on hs.id=hsa.subcontractor_id
|
|
|
<where>
|
|
|
${ew.sqlSegment}
|