撤销:逻辑删除文件时,同时删除文件关系
This commit is contained in:
parent
f1671264d1
commit
c72e25f4b0
|
|
@ -73,8 +73,6 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
|
||||||
private PermissionService permissionService;
|
private PermissionService permissionService;
|
||||||
@Resource
|
@Resource
|
||||||
private UserMapper userMapper;
|
private UserMapper userMapper;
|
||||||
@Resource
|
|
||||||
private EdFileRelationMapper edFileRelationMapper;
|
|
||||||
|
|
||||||
private String downloadDataDir = "";
|
private String downloadDataDir = "";
|
||||||
private String uploadDataDir = "";
|
private String uploadDataDir = "";
|
||||||
|
|
@ -214,12 +212,6 @@ public class EdFileInfoServiceImpl extends ServiceImpl<EdFileInfoMapper, EdFileI
|
||||||
.set(EdFileInfo::getEffectFlag, false)
|
.set(EdFileInfo::getEffectFlag, false)
|
||||||
.set(EdFileInfo::getAllDeleted, true)
|
.set(EdFileInfo::getAllDeleted, true)
|
||||||
.eq(EdFileInfo::getFileId, fileInfo.getFileId()));
|
.eq(EdFileInfo::getFileId, fileInfo.getFileId()));
|
||||||
|
|
||||||
// 删除文件时,同时删除其关联关系
|
|
||||||
edFileRelationMapper.delete(Wrappers.lambdaQuery(EdFileRelation.class)
|
|
||||||
.eq(EdFileRelation::getId1, id)
|
|
||||||
.or()
|
|
||||||
.eq(EdFileRelation::getId2, id));
|
|
||||||
return ElectromagneticResultUtil.success(true);
|
return ElectromagneticResultUtil.success(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue