考勤

实时状态

select * from Hr_AttRecord where EmpId= *** order by AttTime
select * from Hr_Employee where  Name='***'

异常处理

select a.*,c.DepartmentName From Hr_AttSchedul_r  a 
left join Hr_Employee b on a.EmpId=b.EmpId
left join Hr_Department c on b.DepartmentId=c.DepartmentId
where a.EmpId=403 order by Ddate
 
select * from Hr_AttSchedul_r
where EmpId=403 and Ddate >='2018-11-05 00:00:00.000'

update Hr_AttSchedul_r
set OutTime='2018-11-06 11:50:08.000'
where SysId='562056'

update Hr_AttSchedul_r
set Remark=null
where SysId='562056' 
 

猜你喜欢

转载自blog.csdn.net/qq_35087942/article/details/82766612
今日推荐