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

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

@@ -94,8 +94,8 @@
 
 	<update id="updateAllExceptionResult">
 		update sap_check_report set result = '异常' 
-		where (LENGTH(checkinException) > 0 or LENGTH(checkoffException) > 0) and result = '正常' 
-			and checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
+		where (LENGTH(checkinException) > 0 or checkinDate is null or LENGTH(checkoffException) > 0 or checkoffDate is null) 
+			and result = '正常' and checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
 	</update>
 
 	<update id="updateResultOk">