|
|
@@ -106,7 +106,7 @@
|
|
|
a.id AS "id",
|
|
|
a.name AS "name",
|
|
|
hs.work_contract as "workContract",
|
|
|
- case when hpd.id is not null then true else false end as "isPayment"
|
|
|
+ case when count(hpd.id) > 0 then true else false end as "isPayment"
|
|
|
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}
|