mirror of
https://gitcode.com/ageerle/ruoyi-ai.git
synced 2026-03-27 11:33:45 +08:00
feat: 修复打开岗位管理爆粗
This commit is contained in:
@@ -47,7 +47,7 @@ public class SysDept extends TenantEntity {
|
||||
/**
|
||||
* 负责人
|
||||
*/
|
||||
private Long leader;
|
||||
private String leader;
|
||||
|
||||
/**
|
||||
* 联系电话
|
||||
|
||||
@@ -160,7 +160,7 @@ public class SysTenantServiceImpl implements ISysTenantService {
|
||||
userMapper.insert(user);
|
||||
//新增系统用户后,默认当前用户为部门的负责人
|
||||
SysDept sd = new SysDept();
|
||||
sd.setLeader(user.getUserId());
|
||||
sd.setLeader(String.valueOf(user.getUserId()));
|
||||
sd.setDeptId(deptId);
|
||||
deptMapper.updateById(sd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user