liupeng 4 년 전
부모
커밋
f252a3faeb
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      code/sapparent/sapservice/src/main/java/org/fouram/mapper/SapCheckReportMapper.xml

+ 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>