|
@@ -146,7 +146,7 @@
|
|
|
<update id="updateRealCheckoffDate">
|
|
|
update sap_check_report
|
|
|
set realCheckoffDate = (
|
|
|
- case when noNeedOffwork = 1 then concat(checkinDay,' ',workTime,':00')
|
|
|
+ case when noNeedOffwork = 1 then concat(checkinDay,' ',offWorkTime,':00')
|
|
|
when checkoutDate2 is not null and checkoutDate2 > concat(checkinDay,' 12:00:00') then checkoutDate2
|
|
|
when checkoutDate1 is not null and checkoutDate1 > concat(checkinDay,' 12:00:00') then checkoutDate1
|
|
|
when checkoffException not like '%未打卡' and checkoffDate is not null then checkoffDate
|
|
@@ -204,6 +204,10 @@
|
|
|
where workMins is null
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateWorkMinsZero">
|
|
|
+ update sap_check_report set workMins = 0 where workMins < 0
|
|
|
+ </update>
|
|
|
+
|
|
|
<update id="updateWorkHours">
|
|
|
update sap_check_report
|
|
|
set workHours = ROUND(workMins / 60, 1)
|