Commit f327aed7 authored by nie'hong's avatar nie'hong

修改-展板参考资料备选中除去音频导览资料

parent f7229779
package cn.chnmuseum.party.web.controller; package cn.chnmuseum.party.web.controller;
import cn.chnmuseum.party.common.dfs.FastDFSUtils; import cn.chnmuseum.party.common.dfs.FastDFSUtils;
import cn.chnmuseum.party.common.enums.FileCatEnum;
import cn.chnmuseum.party.common.log.MethodLog; import cn.chnmuseum.party.common.log.MethodLog;
import cn.chnmuseum.party.common.log.OperModule; import cn.chnmuseum.party.common.log.OperModule;
import cn.chnmuseum.party.common.log.OperType; import cn.chnmuseum.party.common.log.OperType;
...@@ -45,6 +46,8 @@ import java.util.LinkedHashMap; ...@@ -45,6 +46,8 @@ import java.util.LinkedHashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import static cn.chnmuseum.party.common.enums.FileCatEnum.EXHIBITION_BOARD_DATUM;
/** /**
* <pre> * <pre>
* 文件资产 前端控制器 * 文件资产 前端控制器
...@@ -173,6 +176,7 @@ public class AssetController extends BaseController { ...@@ -173,6 +176,7 @@ public class AssetController extends BaseController {
public Map<String, Object> getAssetByBoard(@RequestParam(value = "boardList", required = true) List<String> boardList){ public Map<String, Object> getAssetByBoard(@RequestParam(value = "boardList", required = true) List<String> boardList){
LambdaQueryWrapper<Asset> assetLambdaQueryWrapper = Wrappers.<Asset>lambdaQuery(); LambdaQueryWrapper<Asset> assetLambdaQueryWrapper = Wrappers.<Asset>lambdaQuery();
assetLambdaQueryWrapper.in(Asset::getRefItemId, boardList); assetLambdaQueryWrapper.in(Asset::getRefItemId, boardList);
assetLambdaQueryWrapper.eq(Asset::getFileCat, FileCatEnum.EXHIBITION_BOARD_DATUM.getCat());
List<Asset> list = this.assetService.list(assetLambdaQueryWrapper); List<Asset> list = this.assetService.list(assetLambdaQueryWrapper);
List<AssetVo> assetVos = new ArrayList<>(); List<AssetVo> assetVos = new ArrayList<>();
for (Asset asset : list) { for (Asset asset : list) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment