fix(接口定义): 修复接口列表批量删除问题 #1005040

This commit is contained in:
fit2-zhao 2021-07-12 14:52:08 +08:00 committed by fit2-zhao
parent f453226c3b
commit 76247d0f08
1 changed files with 4 additions and 0 deletions

View File

@ -870,6 +870,10 @@ public class ApiDefinitionService {
}
public void removeToGcByParams(ApiBatchRequest request) {
// 去除Name排序
if (request.getCondition() != null && CollectionUtils.isNotEmpty(request.getCondition().getOrders())) {
request.getCondition().getOrders().clear();
}
ServiceUtils.getSelectAllIds(request, request.getCondition(),
(query) -> extApiDefinitionMapper.selectIds(query));
extApiDefinitionMapper.removeToGc(request.getIds());