|
|
@@ -117,7 +117,7 @@ public class PpointService {
|
|
|
/**
|
|
|
* Admin list: paginated P-point configs with product name.
|
|
|
*/
|
|
|
- public Map<String, Object> adminList(Page<ProductPpoint> pageParam, String keyword, Long productId) {
|
|
|
+ public Map<String, Object> adminList(Page<ProductPpoint> pageParam, String keyword, Long productId, List<Map<String, String>> sortSpecs) {
|
|
|
LambdaQueryWrapper<ProductPpoint> wrapper = new LambdaQueryWrapper<ProductPpoint>()
|
|
|
.orderByDesc(ProductPpoint::getCreatedAt);
|
|
|
|
|
|
@@ -125,7 +125,7 @@ public class PpointService {
|
|
|
wrapper.eq(ProductPpoint::getProductId, productId);
|
|
|
}
|
|
|
|
|
|
- SortUtil.applySort(wrapper);
|
|
|
+ SortUtil.applySort(wrapper, sortSpecs, null);
|
|
|
Page<ProductPpoint> page = productPpointMapper.selectPage(pageParam, wrapper);
|
|
|
List<ProductPpoint> records = page.getRecords();
|
|
|
|