pad点餐bug修复

This commit is contained in:
张松 2025-04-03 16:32:40 +08:00
parent a780b65f15
commit d64041cb0e
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}