|
@@ -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 <= #{endDay}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateRealResultRemarkLeave">
|
|
|
- update sap_check_report
|
|
|
+ update sap_check_report a
|
|
|
set realResultRemark = '已申请休假', realResult = '正常'
|
|
|
where realResult = '已申请休假' and checkinDay >= #{startDay} and checkinDay <= #{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 < 0 and checkinDay >= #{startDay} and checkinDay <= #{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 <= #{endDay}
|
|
|
</update>
|