Commit 6eccc32a authored by liqin's avatar liqin 💬

bug fixed

parent 659e65a0
......@@ -317,8 +317,10 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
videoContent.setName(asset.getVideoContentName());
this.videoContentService.updateById(videoContent);
}
if (!collect.isEmpty()) {
collect.remove(videoFileId);
}
}
if (!collect.isEmpty()) {
this.assetMapper.deleteBatchIds(collect.keySet());
}
......@@ -397,8 +399,10 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
asset.setRefItemId(exhibitionBoardId);
asset.setPublished(true);
this.assetMapper.updateById(asset);
if (!collect.isEmpty()) {
collect.remove(audioId);
}
}
if (!collect.isEmpty()) {
this.assetMapper.deleteBatchIds(collect.keySet());
}
......@@ -416,8 +420,10 @@ public class AuditServiceImpl extends ServiceImpl<AuditMapper, Audit> implements
asset.setRefItemId(exhibitionBoardId);
asset.setPublished(true);
this.assetMapper.updateById(asset);
if (!collect.isEmpty()) {
collect.remove(datumId);
}
}
if (!collect.isEmpty()) {
this.assetMapper.deleteBatchIds(collect);
}
......
......@@ -216,7 +216,6 @@ public class FileUploadController extends BaseController {
FastDFSUtils.deleteFile(fileUrlCrypto);
} catch (Throwable ignored) {
}
asset.setFileUrl(one.getFileUrl());
asset.setIntro(one.getIntro());
asset.setFileUrlCrypto(one.getFileUrlCrypto());
asset.setFileNameCrypto(one.getFileNameCrypto());
......
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