Commit 6eccc32a authored by liqin's avatar liqin 💬

bug fixed

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