ecology_maven/sql/index.sql

11 lines
538 B
MySQL
Raw Permalink Normal View History

2022-01-26 16:14:41 +08:00
select kqdt.signindate,kqdt.signoutdate,kqdt.signintime ,kqdt.signouttime,
FLOOR(
datediff(minute,signindate + ' ' + signintime,signoutdate + ' ' + signouttime)/60.0 - 8.0
) overtime,
kqdt.changeType
from kq_format_detail kqdt
join kq_holidayset kqst on kqdt.signindate = kqst.holidayDate
where signindate is not null
and signoutdate is not null
and signindate <> '' and signoutdate <> ''
and FLOOR(datediff(minute,signindate + ' ' + signintime,signoutdate + ' ' + signouttime)/60.0 - 8.0) > 0