|
@@ -15,6 +15,7 @@ package vip.xiaonuo.disk.controller;
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
import cn.dev33.satoken.annotation.SaCheckPermission;
|
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.collection.CollStreamUtil;
|
|
import cn.hutool.core.collection.CollStreamUtil;
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
|
|
|
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
|
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
|
|
@@ -557,27 +558,30 @@ public class ResourceRecordController {
|
|
|
String userId = StpLoginUserUtil.getLoginUser().getId();
|
|
String userId = StpLoginUserUtil.getLoginUser().getId();
|
|
|
param.put("userId", userId);
|
|
param.put("userId", userId);
|
|
|
Map<String,Object> result=courseAuditRecordService.queryRecentlyRecord(param);
|
|
Map<String,Object> result=courseAuditRecordService.queryRecentlyRecord(param);
|
|
|
- //获取关键词
|
|
|
|
|
- String keyword= String.valueOf(result.get("keyword"));
|
|
|
|
|
- keyword=StringUtils.deleteWhitespace(keyword);
|
|
|
|
|
- if(StringUtils.isNotEmpty(keyword))
|
|
|
|
|
- {
|
|
|
|
|
- String[] keywordIdArray=keyword.split(",");
|
|
|
|
|
- List<Integer> keywordIdList = Arrays.stream(keywordIdArray)
|
|
|
|
|
- .map(Integer::parseInt)
|
|
|
|
|
- .collect(Collectors.toList());
|
|
|
|
|
- List<KeyWord> keywordList=keyWordService.selectByIds(keywordIdList);
|
|
|
|
|
- result.put("keywordList",keywordList);
|
|
|
|
|
- }
|
|
|
|
|
- //获取私密权限下关联的用户
|
|
|
|
|
- param.clear();
|
|
|
|
|
- if(StringUtils.isNotEmpty(String.valueOf(result.get("authType"))))
|
|
|
|
|
|
|
+ if(ObjectUtil.isNotEmpty(result))
|
|
|
{
|
|
{
|
|
|
- if("1".equals(String.valueOf(result.get("authType"))))
|
|
|
|
|
|
|
+ //获取关键词
|
|
|
|
|
+ String keyword= String.valueOf(result.get("keyword"));
|
|
|
|
|
+ keyword=StringUtils.deleteWhitespace(keyword);
|
|
|
|
|
+ if(StringUtils.isNotEmpty(keyword))
|
|
|
{
|
|
{
|
|
|
- param.put("resourceRecord", req.getParameter("id"));
|
|
|
|
|
- List<ResourceRecordUserRelate> userRelateList=resourceRecordUserRelateService.allList(param);
|
|
|
|
|
- result.put("userRelateList",userRelateList);
|
|
|
|
|
|
|
+ String[] keywordIdArray=keyword.split(",");
|
|
|
|
|
+ List<Integer> keywordIdList = Arrays.stream(keywordIdArray)
|
|
|
|
|
+ .map(Integer::parseInt)
|
|
|
|
|
+ .collect(Collectors.toList());
|
|
|
|
|
+ List<KeyWord> keywordList=keyWordService.selectByIds(keywordIdList);
|
|
|
|
|
+ result.put("keywordList",keywordList);
|
|
|
|
|
+ }
|
|
|
|
|
+ //获取私密权限下关联的用户
|
|
|
|
|
+ param.clear();
|
|
|
|
|
+ if(StringUtils.isNotEmpty(String.valueOf(result.get("authType"))))
|
|
|
|
|
+ {
|
|
|
|
|
+ if("1".equals(String.valueOf(result.get("authType"))))
|
|
|
|
|
+ {
|
|
|
|
|
+ param.put("resourceRecord", req.getParameter("id"));
|
|
|
|
|
+ List<ResourceRecordUserRelate> userRelateList=resourceRecordUserRelateService.allList(param);
|
|
|
|
|
+ result.put("userRelateList",userRelateList);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|