修改店铺信息发送跟新mq
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user