触发打印位置

This commit is contained in:
2026-01-17 14:36:04 +08:00
parent 5da3b447c7
commit fff14043b5
3 changed files with 9 additions and 7 deletions

View File

@@ -56,8 +56,8 @@ public class RabbitPublisher {
* @param orderId 订单id
* @param printOrder 是否打印结算单
*/
public void sendOrderPrintMsg(String orderId, boolean printOrder) {
log.info("开始发送打印mq消息, orderId: {}, printOrder: {}", orderId, printOrder);
public void sendOrderPrintMsg(String orderId, boolean printOrder, String source) {
log.info("开始发送打印mq消息, orderId: {}, printOrder: {}, source: {}", orderId, printOrder, source);
//厨房票
sendMsg(RabbitConstants.Queue.ORDER_MACHINE_PRINT_QUEUE, new JSONObject().fluentPut("orderId", orderId).fluentPut("printOrder", printOrder).toString());
//前台票
@@ -108,8 +108,9 @@ public class RabbitPublisher {
* 1,2,sendMarkSms 发送营销短信 shop_id,sms_push_event.id,sendMarkSms
* 1,2,sendWechatTemp 发送微信模版消息 shop_id,ac_push_event.id,sendWechatTemp
* 1,2,groupBuyYes 发送微信模版消息 shop_id,gb_order.id,groupBuyYes
*
* @param param 店铺Id,主键Id
* @param type applySmsTemp,sendMarkSms,sendWechatTemp,groupBuyYes
* @param type applySmsTemp,sendMarkSms,sendWechatTemp,groupBuyYes
*/
public void sendApplySmsMsg(String param, String type) {
sendMsg(RabbitConstants.Queue.APPLY_SMS_TEMPLATE_QUEUE, param + "," + type);