|
|
@@ -245,12 +245,12 @@
|
|
|
<select id="getInfoList" resultType="WsStaff" >
|
|
|
SELECT
|
|
|
a.id AS "id",
|
|
|
- a.mobile AS "mobile",
|
|
|
- a.user_name as "userName",
|
|
|
+ a.phone AS "mobile",
|
|
|
+ a.real_name as "userName",
|
|
|
count(wpc.duration) as "sumClockDay",
|
|
|
sum(wpc.duration) as "sumClockTime"
|
|
|
- FROM ws_staff a
|
|
|
- left join ws_punch_clock wpc on wpc.member_id=a.member_id
|
|
|
+ FROM hp_member a
|
|
|
+ left join ws_punch_clock wpc on wpc.member_id=a.id
|
|
|
WHERE wpc.company_id = #{id} and wpc.duration is not null
|
|
|
and TO_DAYS(wpc.start_punch_clock) between TO_DAYS(#{startTime}) and TO_DAYS(#{endTime})
|
|
|
group by a.id
|