Compare commits
3 Commits
eb3826927d
...
258eea5277
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
258eea5277 | ||
|
|
bb1d3bd359 | ||
|
|
6a8c87ed95 |
@@ -1534,11 +1534,12 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
if (!collectionSorts.isEmpty()) {
|
if (!collectionSorts.isEmpty()) {
|
||||||
|
|
||||||
collectionSortMapper.deleteById(collectionSorts.get(0));
|
collectionSortMapper.deleteById(collectionSorts.get(0));
|
||||||
List<CollectionSort> collectionSorts1 = collectionSortMapper.selectList(new LambdaQueryWrapper<CollectionSort>().eq(CollectionSort::getParentId, collectionSorts.get(0).getParentId()).orderByDesc(CollectionSort::getSort).last("LIMIT 1"));
|
List<CollectionSort> collectionSorts1 = collectionSortMapper.selectList(new LambdaQueryWrapper<CollectionSort>().eq(CollectionSort::getParentId, collectionSorts.get(0).getParentId()).gt(CollectionSort::getSort, collectionSorts.get(0).getSort()));
|
||||||
|
|
||||||
if (!collectionSorts1.isEmpty()) {
|
if (!collectionSorts1.isEmpty()) {
|
||||||
collectionSorts1.get(0).setSort(collectionSorts1.get(0).getSort() - 1);
|
for (CollectionSort collectionSort : collectionSorts1) {
|
||||||
collectionSortMapper.updateById(collectionSorts1.get(0));
|
collectionSort.setSort(collectionSort.getSort() - 1);
|
||||||
|
collectionSortMapper.updateById(collectionSort);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user