|
|
@@ -68,6 +68,10 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
public AjaxResult add(ProjectStaffRecord in) {
|
|
|
SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
String username = user.getNickName();
|
|
|
+ SysUser sysUser = sysUserMapper.selectUserById(user.getUserId());
|
|
|
+ if (sysUser.getStatus().equals("2")){
|
|
|
+ return AjaxResult.error("用户已暂停打卡,请联系公司管理员.");
|
|
|
+ }
|
|
|
in.setName(username);
|
|
|
if(in.getProcessStatus()>1)in.setProcessStatus(1);
|
|
|
|