PC端/收银机商品查询增加缓存
This commit is contained in:
parent
d42a6025d9
commit
27c766d78c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue