实时状态
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'