Commit cab8df9b authored by liqin's avatar liqin 💬

bug fixed

parent 4e3de4d7
package cn.wisenergy.chnmuseum.party.web.controller; 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.enums.*;
import cn.wisenergy.chnmuseum.party.common.validator.groups.Add; import cn.wisenergy.chnmuseum.party.common.validator.groups.Add;
import cn.wisenergy.chnmuseum.party.common.validator.groups.Update; import cn.wisenergy.chnmuseum.party.common.validator.groups.Update;
...@@ -118,12 +117,7 @@ public class VideoContentController extends BaseController { ...@@ -118,12 +117,7 @@ public class VideoContentController extends BaseController {
this.assetService.updateById(asset); this.assetService.updateById(asset);
collect.remove(videoFileId); collect.remove(videoFileId);
} }
collect.forEach((k, v) -> { collect.forEach((k, v) -> this.assetService.removeById(k));
boolean deleted = this.assetService.removeById(k);
if (deleted) {
FastDFSUtils.deleteFile(v);
}
});
} }
final Audit audit = Audit.builder() final Audit audit = Audit.builder()
......
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