Commit 46ff55a3 authored by unset's avatar unset

添加通知信息

parent 4c9cc162
......@@ -51,8 +51,6 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
imageInfoRelation.setRelationId(imageImgStorage.getId());
imageInfoRelationBiz.addUpdate(imageInfoRelation);
});
} else {
imageInfoRelationBiz.deleteAll(imageImgStorage.getId());
}
} else {
ImageImgStorage old = selectById(imageImgStorage.getId());
......@@ -62,15 +60,13 @@ public class ImageImgStorageBiz extends BaseBiz<ImageImgStorageMapper,ImageImgSt
BeanUtil.copyProperties(imageImgStorage, old, CopyOptions.create().setIgnoreNullValue(true).setIgnoreError(true));
updateSelectiveByIdRe(old);
}
imageInfoRelationBiz.deleteAll(old.getId());
if (old.getImageInfoRelationList() != null && old.getImageInfoRelationList().size() > 0) {
old.getImageInfoRelationList().stream().forEach(imageInfoRelation -> {
imageInfoRelation.setType(1);
imageInfoRelation.setRelationId(old.getId());
imageInfoRelationBiz.addUpdate(imageInfoRelation);
});
} else {
imageInfoRelationBiz.deleteAll(old.getId());
}
}
return ObjectRestResponse.succ();
......
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