This commit is contained in:
xy
2024-08-02 16:01:25 +08:00
parent 3a589962a5
commit f54ce5ae3c

View File

@@ -259,7 +259,7 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IU
return null;
}
BeanUtil.copyProperties(user, userVO);
if (!Objects.isNull(user.getDeptId())) {
if (!Objects.isNull(user.getDeptId()) && StringUtils.isNotBlank(user.getDeptId())) {
Dept dept = deptService.getDeptById(user.getDeptId());
//非自定义部门
if (Objects.equals(dept.getType(), 0)) {