BUGFIX:排序优化
This commit is contained in:
@@ -227,8 +227,8 @@ public class CollectionSortServiceImpl extends ServiceImpl<CollectionSortMapper,
|
|||||||
}
|
}
|
||||||
child.setSort(collectionSort.getSort());
|
child.setSort(collectionSort.getSort());
|
||||||
// 原来排序的大于等于userLikeSortId的排序的,都要+1
|
// 原来排序的大于等于userLikeSortId的排序的,都要+1
|
||||||
// baseMapper.increaseGenerateSortAbove(parentId, /*relationType,*/ collectionSort.getSort() - 1);
|
baseMapper.increaseGenerateSortAbove(parentId, /*relationType,*/ collectionSort.getSort() - 1);
|
||||||
resort(collectionSort.getProjectId(), parentId);
|
// resort(collectionSort.getProjectId(), parentId);
|
||||||
// 当前的生成结果则填入userLikeSortId的排序位置
|
// 当前的生成结果则填入userLikeSortId的排序位置
|
||||||
child.setUpdateTime(LocalDateTime.now());
|
child.setUpdateTime(LocalDateTime.now());
|
||||||
baseMapper.updateById(child);
|
baseMapper.updateById(child);
|
||||||
|
|||||||
Reference in New Issue
Block a user