Commit 2c4c87e3 authored by 罗可心's avatar 罗可心 😕

Merge remote-tracking branch 'origin/dev' into dev

parents 32326660 81aa2c5c
......@@ -97,6 +97,15 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserRepositorys, SysUser>
sysUserRepositorys.updateSysUser(u);
}
}
return new CyPersistModel(1);
} else {
//判断手机号在访客中是否重复
if (userList.size() != 0 && userList.get(0).getUserType().equals("1")) {
sysUserRepositorys.delSysUser(Long.valueOf(userList.get(0).getBusinessId()));
}
// 新增员工
if (userList.size() > 0) {
throw new CyServiceException(500, "手机号已存在");
}
//添加所属园区中文
sysUser.setAddressLabel(sysUser.getAddressLabel());
......
......@@ -63,10 +63,10 @@
and nlt_bz = #{entity.nltBz}
</if>
<if test="entity.sort == '0'.toString()">
order by work_hours
order by date_of_attendance desc, work_hours desc
</if>
<if test="entity.sort == '1'.toString()">
order by off_hours
order by date_of_attendance desc, off_hours desc
</if>
<if test="entity.sort == '2'.toString()">
order by time_on_job + 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment