|
@@ -108,6 +108,15 @@
|
|
|
where a.checkinDay = b.`day` and a.userId = b.userId;
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateResultOkByAllLeave">
|
|
|
+ update sap_check_report a ,sap_employee_time f
|
|
|
+ SET a.result = '正常',a.leaveCreatedTime = f.createdDateTime,
|
|
|
+ a.leaveStartDate = f.startDate, a.leaveEndDate = f.endDate,
|
|
|
+ a.leaveDay = f.deductionQuantity, a.leaveComment =f.`comment`
|
|
|
+ where a.userId = f.userId and a.checkinDay >= f.startDate and a.checkinDay <= f.endDate
|
|
|
+ and f.approvalStatus = 'APPROVED' and f.delFlag=0 and a.result = '异常'
|
|
|
+ </update>
|
|
|
+
|
|
|
<select id="selectLeaveDayList" resultType="SapCheckReport">
|
|
|
SELECT * from sap_check_report where result = '异常' and leaveDay is not null
|
|
|
and checkinDay >= #{startDay} and checkinDay <= #{endDay}
|