liupeng преди 3 години
родител
ревизия
a799601e32
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapCheckReportMapper.xml

+ 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