|
@@ -80,7 +80,6 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
@Override
|
|
|
public Page<ProductInfoVo> getPage(ProductInfoSelectDto dto) {
|
|
|
IWrapper<ProductInfo> wrapper = getWrapper();
|
|
|
- wrapper.orderByDesc("pi", ProductInfo::getId);
|
|
|
wrapper.eq("pi", ProductInfo::getType, dto.getType());
|
|
|
wrapper.eq("pi", ProductInfo::getDefinition, dto.getDefinition());
|
|
|
|
|
@@ -107,6 +106,13 @@ public class ProductInfoServiceImpl extends ServiceImpl<ProductInfoMapper, Produ
|
|
|
|
|
|
wrapper.eq("json_unquote( victoriatourist_json -> '$.combination' )", dto.getCombination());
|
|
|
|
|
|
+
|
|
|
+ wrapper.orderByDesc("pi", ProductInfo::getId);
|
|
|
+ wrapper.orderByAsc("pi", ProductInfo::getName);
|
|
|
+ wrapper.orderByAsc("pi", ProductInfo::getSpec);
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
Page<ProductInfoVo> page = this.baseMapper.getPage(dto.getPage(), wrapper);
|
|
|
|
|
|
List<ProductInfoVo> records = page.getRecords();
|