PC端/收银机商品查询增加缓存
This commit is contained in:
@@ -66,7 +66,7 @@ public interface ProductService extends IService<Product> {
|
||||
* 删除商品
|
||||
*
|
||||
* @param shopId 店铺ID
|
||||
* @param id 商品ID
|
||||
* @param id 商品ID
|
||||
*/
|
||||
void deleteProduct(Long shopId, Long id);
|
||||
|
||||
@@ -114,9 +114,17 @@ public interface ProductService extends IService<Product> {
|
||||
|
||||
/**
|
||||
* 商品出入库流水查询
|
||||
*
|
||||
* @param param 查询参数
|
||||
* @return 分页数据
|
||||
*/
|
||||
Page<ProductStockFlow> findProductStockFlowPage(ProductStockFlowParam param);
|
||||
|
||||
/**
|
||||
* 刷新商品库存
|
||||
*
|
||||
* @param param 查询条件
|
||||
* @param records 商品数据集合
|
||||
*/
|
||||
void refreshProductStock(ProductDTO param, List<ProductDTO> records);
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import com.czg.product.vo.ShopProductVo;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 用户端商品Service
|
||||
@@ -45,4 +46,24 @@ public interface UProductService extends IService<Product> {
|
||||
* @return 商品详情
|
||||
*/
|
||||
ShopProductSkuInfoVo getProductSkuInfo(ShopProductSkuParam param);
|
||||
|
||||
/**
|
||||
* 刷新商品库存
|
||||
* @param shopId 店铺id
|
||||
*/
|
||||
Map<Long, Integer> findShopProductStock(Long shopId);
|
||||
|
||||
/**
|
||||
* 刷新商品库存
|
||||
* @param shopId 店铺id
|
||||
* @param productList 商品列表
|
||||
*/
|
||||
void refreshProductStock(Long shopId,List<ShopProductVo> productList);
|
||||
|
||||
/**
|
||||
* 刷新商品库存
|
||||
* @param productStock 商品库存
|
||||
* @param productList 商品列表
|
||||
*/
|
||||
void refreshProductStock(Map<Long, Integer> productStock,List<ShopProductVo> productList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user