Commit ca53f255 authored by 赵啸非's avatar 赵啸非

更新事项,异步更新关联

parent 7de68889
......@@ -321,7 +321,7 @@ public class AppServiceImpl extends AbstractCRUDServiceImpl<AppDao, AppEntity, L
AppEntity targetAppEntity = this.get(targetAppId, context);
//删除应用的数据集
if(!ObjectUtils.isEmpty(sourceAppEntity.getTargetDelete())&&YesNoEnum.YES.getValue()==sourceAppEntity.getTargetDelete()) {
if(!ObjectUtils.isEmpty(appEntity.getTargetDelete())&&YesNoEnum.YES.getValue()==appEntity.getTargetDelete()) {
Long[] delIds = targetAppEntity.getAppDatasetList().stream().map(i -> i.getId()).toArray(Long[]::new);
if (ObjectUtils.isEmpty(delIds)) {
appDatasetService.remove(delIds, context);
......
......@@ -123,7 +123,8 @@ Content-Type: application/json
{
"sourceAppId":228,
"targetAppId":230
"targetAppId":230,
"targetDelete": 1
}
......
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