liupeng 4 years ago
parent
commit
e30c2cc401

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