pad点餐bug修复
This commit is contained in:
parent
a780b65f15
commit
d64041cb0e
|
|
@ -147,6 +147,11 @@ public class JoinQueryWrapper extends QueryWrapper {
|
|||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> QueryWrapper groupBy(LambdaGetter<T> column) {
|
||||
return super.groupBy(getColum(column));
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T> JoinQueryWrapper like(LambdaGetter<T> column, Object value) {
|
||||
like(getColum(column), value);
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ public class PadProdServiceImpl implements PadProdService {
|
|||
if (productCategoryId != null) {
|
||||
queryWrapper.eq(PadProductCategory::getProductCategoryId, productCategoryId);
|
||||
}
|
||||
queryWrapper.groupBy(PadProductCategory::getId);
|
||||
queryWrapper.orderBy(PadProductCategory::getSort, true).orderBy(PadProductCategory::getId, false);
|
||||
return padProductCategoryDetailMapper.xmlPaginate("selectPageByKeyAndShopId", objectPage, queryWrapper);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue