|
|
@@ -371,6 +371,9 @@ public class SmartAuthorGroupController implements SmartAuthorGroupControllerAPI
|
|
|
SmartAuthority smartAuthority = userAuthor.get(0);
|
|
|
Integer groupId = smartAuthority.getGroupId();
|
|
|
SmartAuthorGroup smartAuthorGroup = smartAuthorGroupService.getSmartById(groupId);
|
|
|
+ if (smartAuthorGroup==null){
|
|
|
+ return CommonResult.ok(new ArrayList<>());
|
|
|
+ }
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
jsonObject.put("departmentViewAuthor", smartAuthority.getDepartmentView());
|
|
|
jsonObject.put("departmentManageAuthor", smartAuthority.getDepartmentManage());
|