新增公司
This commit is contained in:
parent
a7aadb246f
commit
366bb2fc8a
|
|
@ -292,6 +292,8 @@ public class SysDeptServiceImpl implements ISysDeptService
|
|||
dept.setAncestors("0");
|
||||
dept.setStatus("0");//默认启用
|
||||
dept.setTemplateId(1L);//TODO 将来用前端传的模版ID
|
||||
dept.setLeader(dept.getSysUser().getUserName());
|
||||
dept.setPhone(dept.getSysUser().getPhonenumber());
|
||||
if (StringUtils.isNotNull(dept.getSysUser()) && !userService.checkUserNameUnique(dept.getSysUser())) {
|
||||
throw new ServiceException("新增公司管理员用户'" + dept.getSysUser().getUserName() + "'失败,登录账号已存在");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue