This commit is contained in:
77
2024-05-20 01:18:08 +08:00
parent 74f0f074c1
commit 5bfdde942c
23 changed files with 249 additions and 71 deletions

View File

@@ -56,7 +56,6 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
private final SysPostMapper postMapper;
private final SysUserRoleMapper userRoleMapper;
private final SysUserPostMapper userPostMapper;
private final ISysTenantService sysTenantService;
@Override
public TableDataInfo<SysUser> selectPageUserList(SysUser user, PageQuery pageQuery) {
@@ -274,11 +273,6 @@ public class SysUserServiceImpl implements ISysUserService, UserService {
@Override
@Transactional(rollbackFor = Exception.class)
public int insertUser(SysUser user) {
SysTenantVo vo = sysTenantService.queryByTenantId(TenantHelper.getTenantId());
if(vo == null){
throw new ServiceException("未找到对应的平台");
}
user.setUserName(vo.getPrefix()+"-"+user.getUserName());
// 新增用户信息
int rows = baseMapper.insert(user);
// 新增用户岗位关联