新增公司

This commit is contained in:
sxu 2025-01-05 21:09:00 +08:00
parent c802aa082e
commit c01eeb505d
1 changed files with 1 additions and 0 deletions

View File

@ -450,6 +450,7 @@ public class SysDeptServiceImpl implements ISysDeptService
user.setCreateBy(SecurityUtils.getUsername()); user.setCreateBy(SecurityUtils.getUsername());
user.setPassword(SecurityUtils.encryptPassword(dept.getInitPassword())); user.setPassword(SecurityUtils.encryptPassword(dept.getInitPassword()));
user.setDeptId(dept.getDeptId()); user.setDeptId(dept.getDeptId());
user.setLoginType("0"); //后台
userMapper.insertUser(user); userMapper.insertUser(user);
dept.setAdminUserId(user.getUserId()); dept.setAdminUserId(user.getUserId());
deptMapper.updateDept(dept); deptMapper.updateDept(dept);