Forráskód Böngészése

修改用户服务商列表sql

LiFei 5 éve
szülő
commit
0cb6ff1dd3

+ 1 - 1
happy-cloud-wisdom/happy-cloud-wisdom-biz/src/main/java/org/jeecg/modules/hlwsubcontractor/mapper/xml/HlwSubcontractorMapper.xml

@@ -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}