liupeng 3 years ago
parent
commit
a799601e32

+ 2 - 2
code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapCheckReportMapper.xml

@@ -37,7 +37,7 @@
 		from sap_check_report a, sap_checkdate b, wx_user c
 		where a.checkinDay=b.checkinDay and a.userId = c.userId
 		<if test="departId != null and departId != ''">
-			and (c.firstDepartId=#{departId} or c.secondDepartId=#{departId})
+			and (c.firstDepartId in (${departId}) or c.secondDepartId in (${departId}))
 		</if>
 		<if test="departIds != null and departIds.size() > 0">
 			and c.firstDepartId in
@@ -69,7 +69,7 @@
 		from sap_check_report a, sap_checkdate b, wx_user c
 		where a.checkinDay=b.checkinDay and a.userId = c.userId
 		<if test="departId != null and departId != ''">
-			and (c.firstDepartId=#{departId} or c.secondDepartId=#{departId})
+			and (c.firstDepartId in (${departId}) or c.secondDepartId in (${departId}))
 		</if>
 		<if test="departIds != null and departIds.size() > 0">
 			and c.firstDepartId in