[修改] 添加编辑用户 部门回显
This commit is contained in:
@@ -112,10 +112,7 @@ public class UserEOController extends BaseController<UserEO> {
|
||||
if (userEOService.getUserByLoginName(eo.getAccount(), eo.getUsid()) != null) {
|
||||
return Result.error("用户名已存在!");
|
||||
}
|
||||
|
||||
|
||||
userEOService.save(eo);
|
||||
|
||||
return Result.success();
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,6 @@ public class UserEOServiceImpl implements IUserEoService {
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void save(UserEO eo) {
|
||||
// TODO 组织机构和角色
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
if (StringUtils.isEmpty(eo.getUsid())) {
|
||||
eo.setDelFlag(0);
|
||||
@@ -116,14 +115,14 @@ public class UserEOServiceImpl implements IUserEoService {
|
||||
userRoleEODao.insert(userRoleEO);
|
||||
});
|
||||
|
||||
// // 插入组织关联表 暂时用不上,页面不维护组织机构
|
||||
// eo.getOrgList().forEach(c -> {
|
||||
// UserOrgEO userOrgEO = new UserOrgEO();
|
||||
// userOrgEO.setUserId(eo.getUsid());
|
||||
// userOrgEO.setOrgId(c.getOrgCode());
|
||||
// userOrgEODao.insert(userOrgEO);
|
||||
// });
|
||||
|
||||
String[] split = eo.getOrgId().split(",");
|
||||
// 插入组织关联表 暂时用不上,页面不维护组织机构
|
||||
for (String s : split) {
|
||||
UserOrgEO userOrgEO = new UserOrgEO();
|
||||
userOrgEO.setUserId(eo.getUsid());
|
||||
userOrgEO.setOrgId(s);
|
||||
userOrgEODao.insert(userOrgEO);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user