| | |
| | | package com.ruoyi.system.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.HashSet; |
| | | import java.util.List; |
| | | import java.util.Set; |
| | | import java.util.*; |
| | | import java.util.stream.Collectors; |
| | | import javax.annotation.Resource; |
| | | import javax.validation.Validator; |
| | |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public int insertUser(SysUser user) { |
| | | // 新增用户信息 |
| | | int rows = userMapper.insertUser(user); |
| | | // int rows = userMapper.insertUser(user); |
| | | // // 新增用户岗位关联 |
| | | // insertUserPost(user); |
| | | // // 新增用户与角色管理 |
| | | // insertUserRole(user); |
| | | return rows; |
| | | user.setCreateTime(new Date()); |
| | | user.setCreateBy(tokenService.getLoginUser().getUsername()); |
| | | user.setUpdateTime(new Date()); |
| | | user.setUpdateBy(tokenService.getLoginUser().getUsername()); |
| | | return userMapper.insert(user); |
| | | } |
| | | |
| | | /** |