修改店铺信息发送跟新mq

This commit is contained in:
张松
2025-12-02 15:17:32 +08:00
parent d05f1f1caf
commit 2c2b3765ad
3 changed files with 11 additions and 6 deletions

View File

@@ -7,6 +7,8 @@ import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import java.util.Map;
/**
* @author GYJoker
*/
@@ -132,8 +134,11 @@ public class RabbitPublisher {
/**
* 订单商品状态消息
*/
public void sendOrderDetailStatusMsg(String shopId) {
sendMsg(RabbitConstants.Queue.ORDER_DETAIL_STATUS_QUEUE, shopId);
public void sendOrderDetailStatusMsg(String shopId, String type) {
sendMsg(RabbitConstants.Queue.ORDER_DETAIL_STATUS_QUEUE, JSONObject.toJSONString(Map.of(
"shopId", shopId,
"type", type
)));
}
private void sendMsg(String queue, String msg) {