Commit 44d0dc5d authored by liqin's avatar liqin 💬

bug fixed

parent 4b2394c6
package cn.wisenergy.chnmuseum.party.web.controller;
import cn.wisenergy.chnmuseum.party.common.dfs.FastDFSUtils;
import cn.wisenergy.chnmuseum.party.common.enums.*;
import cn.wisenergy.chnmuseum.party.common.validator.groups.Add;
import cn.wisenergy.chnmuseum.party.common.validator.groups.Update;
......@@ -130,12 +129,7 @@ public class ExhibitionBoardController extends BaseController {
this.assetService.updateById(asset);
collect.remove(audioId);
}
collect.forEach((k, v) -> {
final boolean deleted = this.assetService.removeById(k);
if (deleted) {
FastDFSUtils.deleteFile(v);
}
});
collect.forEach((k, v) -> this.assetService.removeById(k));
}
final List<String> datumIdList = exhibitionBoard.getDatumIdList();
......@@ -151,12 +145,7 @@ public class ExhibitionBoardController extends BaseController {
this.assetService.updateById(asset);
collect.remove(datumId);
}
collect.forEach((k, v) -> {
final boolean deleted = this.assetService.removeById(k);
if (deleted) {
FastDFSUtils.deleteFile(v);
}
});
collect.forEach((k, v) -> this.assetService.removeById(k));
}
final Audit audit = Audit.builder()
......@@ -219,7 +208,7 @@ public class ExhibitionBoardController extends BaseController {
if (boardCopyrightOwnerIdList != null && !boardCopyrightOwnerIdList.isEmpty()) {
lambdaQueryWrapper.in(ExhibitionBoard::getBoardCopyrightOwnerId, boardCopyrightOwnerIdList);
}
lambdaQueryWrapper.eq(ExhibitionBoard::getPublished,true);
lambdaQueryWrapper.eq(ExhibitionBoard::getPublished, true);
lambdaQueryWrapper.orderByDesc(ExhibitionBoard::getCreateTime);
List<ExhibitionBoard> exhibitionBoardList = exhibitionBoardService.list(lambdaQueryWrapper);
for (ExhibitionBoard exhibitionBoard : exhibitionBoardList) {
......
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