清除分类商品缓存

This commit is contained in:
Tankaikai
2025-04-16 16:12:31 +08:00
parent 6d0cef6667
commit 1c5cc04769
5 changed files with 36 additions and 25 deletions

View File

@@ -1,5 +1,7 @@
package com.czg.product.service;
import com.czg.product.vo.ProductVO;
import java.util.List;
import java.util.Map;
@@ -36,4 +38,13 @@ public interface ProductRpcService {
* @param dataList 库存恢复数据
*/
void orderRefundReturnStock(Long shopId, Long orderId, List<Map<String, Object>> dataList);
List<ProductVO> listAndLowPrice(Long shopId, List<Long> productIds);
/**
* 清除分类商品缓存
* @param shopId 店铺id
* @param categoryId 商品分类id
*/
void cleanCategoryProduct(Long shopId, Long categoryId);
}

View File

@@ -5,7 +5,6 @@ import com.czg.product.entity.Product;
import com.czg.product.entity.ProductStockFlow;
import com.czg.product.param.*;
import com.czg.product.vo.ProductStatisticsVo;
import com.czg.product.vo.ProductVO;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;
@@ -142,13 +141,4 @@ public interface ProductService extends IService<Product> {
*/
void refreshProductStock(ProductDTO param, List<ProductDTO> records);
List<ProductVO> listAndLowPrice(Long shopId, List<Long> productIds);
/**
* 清除分类商品缓存
* @param shopId 店铺id
* @param categoryId 商品分类id
*/
void cleanCategoryProduct(Long shopId, Long categoryId);
}