This commit is contained in:
@@ -14,4 +14,5 @@ public interface CommonRelationMapper {
|
||||
List<String> getStoryItemsByImageInstanceId(String imageInstanceId);
|
||||
|
||||
void deleteImageStoryItemRelation(String imageInstanceId, String storyItemId);
|
||||
void deleteRelationByRelaId(String instanceId);
|
||||
}
|
||||
|
||||
@@ -166,6 +166,9 @@ public class FileServiceImpl implements FileService {
|
||||
imageInfo.setIsDeleted(CommonConstants.DELETED);
|
||||
imageInfo.setUpdateTime(LocalDateTime.now());
|
||||
imageInfoMapper.update(imageInfo);
|
||||
|
||||
// 删除关联关系
|
||||
commonRelationMapper.deleteRelationByRelaId(instanceId);
|
||||
} catch (Exception e) {
|
||||
log.error("删除图片失败", e);
|
||||
throw new CustomException(500, "删除图片失败");
|
||||
|
||||
Reference in New Issue
Block a user