|
|
@@ -175,7 +175,7 @@
|
|
|
FROM hlw_subcontractor a
|
|
|
inner join hlw_application_subcontractor has on has.subcontractor_id=a.id
|
|
|
left join hlw_user hu on hu.user_code=#{userCode}
|
|
|
- left join hlw_user_subcontractor hs on hs.subcontractor_id=a.id and hu.id=hs.user_id and (to_days(now()) between to_days(hs.start_date) and to_days(hs.end_date))
|
|
|
+ inner join hlw_user_subcontractor hs on hs.subcontractor_id=a.id and hu.id=hs.user_id and (to_days(now()) between to_days(hs.start_date) and to_days(hs.end_date))
|
|
|
left join hlw_payment hp on hp.subcontractor_id=a.id and hp.application_id = #{applicationId} and hp.status=3
|
|
|
left join hlw_payment_detail hpd on hpd.idcard_number=hu.idcard_number and hp.id=hpd.payment_id and hpd.status=3
|
|
|
WHERE has.application_id = #{applicationId}
|