交班相关代码
This commit is contained in:
@@ -14,5 +14,6 @@ public interface RabbitConstants {
|
||||
public static final String ORDER_CANCEL_QUEUE = "order.cancel.queue";
|
||||
public static final String ORDER_PRINT_QUEUE = "order.print.queue";
|
||||
public static final String ORDER_MACHINE_PRINT_QUEUE = "order.machine.print.queue";
|
||||
public static final String ORDER_HANDOVER_PRINT_QUEUE = "order.handover.print.queue";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -45,6 +45,15 @@ public class RabbitPublisher {
|
||||
sendMsg(RabbitConstants.Queue.ORDER_PRINT_QUEUE, orderId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 交班小票打印消息
|
||||
*
|
||||
* @param handoverRecordId 交班记录id
|
||||
*/
|
||||
public void sendHandoverPrintMsg(String handoverRecordId) {
|
||||
sendMsg(RabbitConstants.Queue.ORDER_HANDOVER_PRINT_QUEUE, handoverRecordId);
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void sendMsg(String queue, String msg) {
|
||||
|
||||
Reference in New Issue
Block a user