liupeng 4 rokov pred
rodič
commit
5ee2e13615

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

@@ -192,19 +192,19 @@
 	</update>
 	
 	<update id="updateRealResultRemarkOK">
-		update sap_check_report 
+		update sap_check_report a 
 		set realResultRemark = '' 
 		where realResult = '正常' and checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
 	</update>
 	
 	<update id="updateRealResultRemarkLeave">
-		update sap_check_report 
+		update sap_check_report a 
 		set realResultRemark = '已申请休假', realResult = '正常' 
 		where realResult = '已申请休假' and checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
 	</update>
 	
 	<update id="updateWorkMins">
-		update sap_check_report
+		update sap_check_report a
 		set workMins = (
 			case when realCheckinDate != '' and realCheckoffDate != '' 
 					then ROUND((unix_timestamp(realCheckoffDate) - unix_timestamp(realCheckinDate))/60,0)  
@@ -215,13 +215,13 @@
 	</update>
 	
 	<update id="updateWorkMinsZero">
-		update sap_check_report 
+		update sap_check_report a
 		set workMins = 0 
 		where workMins &lt; 0 and checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
 	</update>
 	
 	<update id="updateWorkHours">
-		update sap_check_report
+		update sap_check_report a
 		set workHours = ROUND(workMins / 60, 1)
 		where checkinDay >= #{startDay} and checkinDay &lt;= #{endDay}
 	</update>