商品模块代码提交

This commit is contained in:
Tankaikai
2025-03-04 09:33:02 +08:00
parent 6e2e73fdcd
commit 23f4e36bda
8 changed files with 190 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
package com.czg.order.service;
import com.alibaba.fastjson2.JSONObject;
import com.czg.account.vo.HandoverCategoryListVo;
import com.czg.account.vo.HandoverProductListVo;
@@ -148,6 +149,13 @@ public interface OrderInfoRpcService {
*/
void orderCancelCallback(Long orderId);
/**
* 订单退款回调 返还商品库存及耗材库存
*
* @param data k-商品id v-数量
*/
void orderRefundCallback(JSONObject data);
/**
* 订单交班回调 发送答应交班小票消息至MQ
*

View File

@@ -28,4 +28,11 @@ public interface ProductRpcService {
* @param dataList 库存恢复数据
*/
void orderCancelRecoverStock(Long shopId, Long orderId, List<Map<String, Object>> dataList);
/**
* 订单退菜或退款后回退库存
*
* @param dataList 库存恢复数据
*/
void orderRefundReturnStock(List<Map<String, Object>> dataList);
}