|
@@ -2,7 +2,7 @@
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
|
<mapper namespace="SapCheckMapper">
|
|
<mapper namespace="SapCheckMapper">
|
|
<select id="selectCheckUserList" resultType="String">
|
|
<select id="selectCheckUserList" resultType="String">
|
|
- SELECT userId from sap_check_user
|
|
|
|
|
|
+ SELECT userId from wx_user
|
|
</select>
|
|
</select>
|
|
<update id="truncateCheckin">
|
|
<update id="truncateCheckin">
|
|
truncate table sap_checkin
|
|
truncate table sap_checkin
|
|
@@ -62,7 +62,7 @@
|
|
d.checkinDate as checkoffDate,d.exceptionType as checkoffException,e.checkinDate as checkoutDate1,g.checkinDate as checkoutDate2,
|
|
d.checkinDate as checkoffDate,d.exceptionType as checkoffException,e.checkinDate as checkoutDate1,g.checkinDate as checkoutDate2,
|
|
f.createdDateTime as leaveCreatedTime, f.startDate as leaveStartDate,
|
|
f.createdDateTime as leaveCreatedTime, f.startDate as leaveStartDate,
|
|
f.endDate as leaveEndDate,f.deductionQuantity as leaveDay,f.`comment` as leaveComment, m.`day` as bukaDay, '正常' as result
|
|
f.endDate as leaveEndDate,f.deductionQuantity as leaveDay,f.`comment` as leaveComment, m.`day` as bukaDay, '正常' as result
|
|
- from sap_check_user a join sap_checkdate b on b.weekday = 1
|
|
|
|
|
|
+ from wx_user a join sap_checkdate b on b.weekday = 1
|
|
LEFT JOIN sap_checkin c on a.userId = c.userId and b.checkinDay = c.checkinDay
|
|
LEFT JOIN sap_checkin c on a.userId = c.userId and b.checkinDay = c.checkinDay
|
|
LEFT JOIN sap_checkoff d on a.userId = d.userId and b.checkinDay = d.checkinDay
|
|
LEFT JOIN sap_checkoff d on a.userId = d.userId and b.checkinDay = d.checkinDay
|
|
LEFT JOIN sap_checkout_start e on a.userId = e.userId and b.checkinDay = e.checkinDay
|
|
LEFT JOIN sap_checkout_start e on a.userId = e.userId and b.checkinDay = e.checkinDay
|