Bläddra i källkod

修改需求列表

LiFei 5 år sedan
förälder
incheckning
6b72dc6b06

+ 1 - 4
happy-boot-module-flexjob/src/main/java/org/jeecg/modules/requiremanager/mapper/xml/HwRequirementMapper.xml

@@ -272,16 +272,13 @@
 		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 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>
 		    a.is_on =1
 			and a.authentication_status=2
 			and a.is_mobile_display=1
 			and hp.id=#{hwRequirementAPI.platformId}
 			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">
 				AND a.province_code = #{hwRequirementAPI.provinceCode}
 			</if>