liupeng il y a 5 ans
Parent
commit
97cbce9127

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

@@ -97,9 +97,17 @@
 		update sap_check_report set workTime = '10:00' where groupName like '%华人时代%'
 	</update>
 
+	<update id="updateCheckinException">
+		update sap_check_report set checkinException = '未打卡后台更新' where checkinDate is null
+	</update>
+	
+	<update id="updateCheckoffException">
+		update sap_check_report set checkoffException = '未打卡后台更新' where checkoffDate is null
+	</update>
+
 	<update id="updateAllExceptionResult">
 		update sap_check_report set result = '异常' 
-		where (LENGTH(checkinException) > 0 or LENGTH(checkoffException) > 0 or checkinDate is null or checkoffDate is null) and result = '正常'
+		where (LENGTH(checkinException) > 0 or LENGTH(checkoffException) > 0) and result = '正常'
 	</update>
 
 	<update id="updateResultOk">

+ 3 - 0
code/sapparent/sapservice/src/main/java/org/fouram/service/SapCheckService.java

@@ -197,6 +197,9 @@ public class SapCheckService extends BaseService {
 		update("SapCheckMapper.saveCheckReport", null);
 		// 更新华人时代人员上班时间可以推迟30分钟
 		update("SapCheckMapper.updateHrsdWorkTime", null);
+		// 更新当前未打卡情况,未更新微信端应该是晚上才更新的
+		update("SapCheckMapper.updateCheckinException", null);
+		update("SapCheckMapper.updateCheckoffException", null);
 		// 更新所有异常事件的数据为异常数据
 		update("SapCheckMapper.updateAllExceptionResult", null);
 		// 查询有请假情况的数据