|
@@ -166,7 +166,7 @@ public class UserController {
|
|
|
public R submit(@Valid @RequestBody UserDTO user) {
|
|
|
CacheUtil.clear(USER_CACHE);
|
|
|
// 内控系统拆分
|
|
|
- List<DeptUserVO> deptList = user.getDeptList();
|
|
|
+/* List<DeptUserVO> deptList = user.getDeptList();
|
|
|
if (deptList != null && deptList.size() >= 1) {
|
|
|
user.setRoleId(JSON.toJSONString(deptList));
|
|
|
String deptId = "";
|
|
@@ -192,7 +192,7 @@ public class UserController {
|
|
|
user.setDeptId(deptId);
|
|
|
user.setRoleId(postId);
|
|
|
user.setIsLeader(isLaderpostId);
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
return R.status(userService.submit(user));
|
|
@@ -219,7 +219,7 @@ public class UserController {
|
|
|
public R update(@Valid @RequestBody UserDTO user) {
|
|
|
CacheUtil.clear(USER_CACHE);
|
|
|
// 内控系统拆分
|
|
|
- List<DeptUserVO> deptList = user.getDeptList();
|
|
|
+/* List<DeptUserVO> deptList = user.getDeptList();
|
|
|
if (deptList != null && deptList.size() >= 1) {
|
|
|
String deptId = "";
|
|
|
String postId = "";
|
|
@@ -245,7 +245,7 @@ public class UserController {
|
|
|
user.setDeptId(deptId);
|
|
|
user.setRoleId(postId);
|
|
|
user.setDeptInfo(JSONArray.toJSONString(deptList));
|
|
|
- }
|
|
|
+ }*/
|
|
|
return R.status(userService.updateUser(user));
|
|
|
}
|
|
|
|