liupeng 4 years ago
parent
commit
f252a3faeb

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

@@ -57,6 +57,7 @@
 		<if test="state != null and state != ''">
 			and a.result = #{state}
 		</if>
+		and not exists (SELECT 1 from wx_depart w where w.name in ('外部人员','集团管理层','华人梦想') and c.firstDepartId = w.id)
 		order by a.userId, a.checkinDay
 		<if test="pageCurrent != null and pageCurrent != ''">
 			limit ${pageCurrent},${pageSize}
@@ -88,5 +89,6 @@
 		<if test="state != null and state != ''">
 			and a.result = #{state}
 		</if>
+		and not exists (SELECT 1 from wx_depart w where w.name in ('外部人员','集团管理层','华人梦想') and c.firstDepartId = w.id)
 	</select>
 </mapper>