pad点餐bug修复
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user