PC端/收银机商品查询增加缓存

This commit is contained in:
Tankaikai 2025-03-27 13:59:52 +08:00
parent d42a6025d9
commit 27c766d78c
1 changed files with 2 additions and 0 deletions

View File

@ -108,6 +108,8 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
Long shopId = StpKit.USER.getShopId(0L);
queryWrapper.eq(Product::getShopId, shopId);
queryWrapper.eq(Product::getIsDel, DeleteEnum.NORMAL.value());
queryWrapper.orderBy(Product::getIsSoldStock, true);
queryWrapper.orderBy(Product::getIsSale, false);
queryWrapper.orderBy(Product::getSort, false);
queryWrapper.orderBy(Product::getId, false);
return queryWrapper;