|
|
|
|
@ -180,11 +180,13 @@ public class PoliceController {
|
|
|
|
|
} |
|
|
|
|
policeService.updateById(supPolice); |
|
|
|
|
} |
|
|
|
|
String userId = saveOrUpdateUser(police); |
|
|
|
|
// 角色
|
|
|
|
|
addRoleUser(userId, police.getRole()); |
|
|
|
|
// 权限
|
|
|
|
|
addAuth(police.getIdCode(), supPolice.getOrgId(), problemSources); |
|
|
|
|
if ("三级机构专班".equals(police.getRole()) || "二级机构专班".equals(police.getRole())) { |
|
|
|
|
String userId = saveOrUpdateUser(police); |
|
|
|
|
// 角色
|
|
|
|
|
addRoleUser(userId, police.getRole()); |
|
|
|
|
// 权限
|
|
|
|
|
addAuth(police.getIdCode(), supPolice.getOrgId(), problemSources); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
return Result.success(list); |
|
|
|
|
|