TASK:AiDA模块化

This commit is contained in:
shahaibo
2025-03-19 11:09:15 +08:00
parent 7d0a6ae2bf
commit b027396567

View File

@@ -1562,9 +1562,11 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
} }
} }
} }
if (!CollectionUtils.isEmpty(old)) {
collectionElementMapper.deleteBatchIds(old); collectionElementMapper.deleteBatchIds(old);
} }
} }
}
if (!CollectionUtils.isEmpty(moduleSaveDTO.getPrintBoard())){ if (!CollectionUtils.isEmpty(moduleSaveDTO.getPrintBoard())){
List<DesignCollectionPrintElementDTO> printBoards = moduleSaveDTO.getPrintBoard(); List<DesignCollectionPrintElementDTO> printBoards = moduleSaveDTO.getPrintBoard();
QueryWrapper<CollectionElement> qw = new QueryWrapper<>(); QueryWrapper<CollectionElement> qw = new QueryWrapper<>();
@@ -1617,8 +1619,10 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
} }
} }
} }
if (!CollectionUtils.isEmpty(old)) {
collectionElementMapper.deleteBatchIds(old); collectionElementMapper.deleteBatchIds(old);
} }
}
if (!CollectionUtils.isEmpty(moduleSaveDTO.getColorBoard())){ if (!CollectionUtils.isEmpty(moduleSaveDTO.getColorBoard())){
List<CollectionColorDTO> colorBoards = moduleSaveDTO.getColorBoard(); List<CollectionColorDTO> colorBoards = moduleSaveDTO.getColorBoard();
QueryWrapper<CollectionElement> qw = new QueryWrapper<>(); QueryWrapper<CollectionElement> qw = new QueryWrapper<>();
@@ -1644,8 +1648,10 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
collectionElementMapper.insert(collectionElement); collectionElementMapper.insert(collectionElement);
} }
} }
if (!CollectionUtils.isEmpty(old)) {
collectionElementMapper.deleteBatchIds(old); collectionElementMapper.deleteBatchIds(old);
} }
}
if (!CollectionUtils.isEmpty(moduleSaveDTO.getSketchBoard())){ if (!CollectionUtils.isEmpty(moduleSaveDTO.getSketchBoard())){
QueryWrapper<CollectionElement> qw = new QueryWrapper<>(); QueryWrapper<CollectionElement> qw = new QueryWrapper<>();
qw.lambda().eq(CollectionElement::getProjectId, projectId); qw.lambda().eq(CollectionElement::getProjectId, projectId);
@@ -1698,8 +1704,10 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
} }
} }
} }
if (!CollectionUtils.isEmpty(old)) {
collectionElementMapper.deleteBatchIds(old); collectionElementMapper.deleteBatchIds(old);
} }
}
return null; return null;
} }