|
@@ -19,11 +19,9 @@
|
|
end AS type,
|
|
end AS type,
|
|
case when nl.type!=''and nl.type !='补卡' then CONCAT(nl.new_duration,' h')
|
|
case when nl.type!=''and nl.type !='补卡' then CONCAT(nl.new_duration,' h')
|
|
when ck.checkin_type ='上班打卡'and ck.exception_type ='时间异常' then
|
|
when ck.checkin_type ='上班打卡'and ck.exception_type ='时间异常' then
|
|
- CONCAT(TIMESTAMPDIFF(MINUTE,DATE_FORMAT(CONCAT(DATE_FORMAT(ck.checkin_time,'%Y-%m-%d '),'09:35:00'),'%Y-%m-%d
|
|
|
|
- %H:%i:%s'),ck.checkin_time),' min')
|
|
|
|
|
|
+ CONCAT(TIMESTAMPDIFF(MINUTE,DATE_FORMAT(CONCAT(DATE_FORMAT(ck.checkin_time,'%Y-%m-%d '),'09:35:00'),'%Y-%m-%d %H:%i:%s'),ck.checkin_time),' min')
|
|
when ck.checkin_type ='下班打卡'and ck.exception_type ='时间异常' then
|
|
when ck.checkin_type ='下班打卡'and ck.exception_type ='时间异常' then
|
|
- CONCAT(TIMESTAMPDIFF(MINUTE,ck.checkin_time,DATE_FORMAT(CONCAT(DATE_FORMAT(ck.checkin_time,'%Y-%m-%d
|
|
|
|
- '),'19:00:00'),'%Y-%m-%d %H:%i:%s')),' min')
|
|
|
|
|
|
+ CONCAT(TIMESTAMPDIFF(MINUTE,ck.checkin_time,DATE_FORMAT(CONCAT(DATE_FORMAT(ck.checkin_time,'%Y-%m-%d '),'19:00:00'),'%Y-%m-%d %H:%i:%s')),' min')
|
|
end AS stateDuration
|
|
end AS stateDuration
|
|
FROM ctop_wechat_user_list AS us
|
|
FROM ctop_wechat_user_list AS us
|
|
LEFT JOIN ctop_wechat_department AS dpt ON us.depart_id = dpt.depart_id
|
|
LEFT JOIN ctop_wechat_department AS dpt ON us.depart_id = dpt.depart_id
|