|
@@ -51,23 +51,10 @@ public class BizCheckCategoryController extends BaseController
|
|
|
@GetMapping("/roleList")
|
|
|
public AjaxResult roleList(BizCheckCategory bizCheckCategory) throws NoSuchFieldException, IllegalAccessException
|
|
|
{
|
|
|
-
|
|
|
- List<SysRole> roles = SecurityUtils.getLoginUser().getUser().getRoles();
|
|
|
- List<BizCheckCategory>newList = new ArrayList<>();
|
|
|
-
|
|
|
+ //此处应该查询所有的类别信息
|
|
|
List<BizCheckCategory> list = bizCheckCategoryService.getList(bizCheckCategory);
|
|
|
- if (SecurityUtils.getLoginUser().getUser().getUserId() == 1L){
|
|
|
- return success(list);
|
|
|
- }else {
|
|
|
- for(BizCheckCategory bizCheckCategory1 : list){
|
|
|
- for (SysRole role : roles){
|
|
|
- if(role.getRoleKey().equals(bizCheckCategory1.getCode())){
|
|
|
- newList.add(bizCheckCategory1);
|
|
|
+ return success(list);
|
|
|
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- return success(newList);}
|
|
|
}
|
|
|
|
|
|
/**
|