|
@@ -272,16 +272,13 @@
|
|
|
left join hw_platform_company hwp on hwp.id=a.platform_company_id
|
|
left join hw_platform_company hwp on hwp.id=a.platform_company_id
|
|
|
left join hw_platform hp on hp.id=hwp.platform_id
|
|
left join hw_platform hp on hp.id=hwp.platform_id
|
|
|
left join sys_depart sd on sd.org_code=a.sys_org_code
|
|
left join sys_depart sd on sd.org_code=a.sys_org_code
|
|
|
- left join hw_enrollment he on he.requirement_id=a.id
|
|
|
|
|
|
|
+ left join hw_enrollment he on he.requirement_id=a.id AND he.user_id = #{hwRequirementAPI.userId}
|
|
|
<where>
|
|
<where>
|
|
|
a.is_on =1
|
|
a.is_on =1
|
|
|
and a.authentication_status=2
|
|
and a.authentication_status=2
|
|
|
and a.is_mobile_display=1
|
|
and a.is_mobile_display=1
|
|
|
and hp.id=#{hwRequirementAPI.platformId}
|
|
and hp.id=#{hwRequirementAPI.platformId}
|
|
|
and a.sys_org_code like concat(#{hwRequirementAPI.sysOrgCode},'%')
|
|
and a.sys_org_code like concat(#{hwRequirementAPI.sysOrgCode},'%')
|
|
|
- <if test="hwRequirementAPI.userId != null and hwRequirementAPI.userId !=''">
|
|
|
|
|
- AND he.user_id = #{hwRequirementAPI.userId}
|
|
|
|
|
- </if>
|
|
|
|
|
<if test="hwRequirementAPI.provinceCode != null">
|
|
<if test="hwRequirementAPI.provinceCode != null">
|
|
|
AND a.province_code = #{hwRequirementAPI.provinceCode}
|
|
AND a.province_code = #{hwRequirementAPI.provinceCode}
|
|
|
</if>
|
|
</if>
|