交班相关代码
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) {
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.czg.account.service;
|
||||
|
||||
import com.czg.account.dto.HandoverRecordDTO;
|
||||
|
||||
/**
|
||||
* 交班记录RPC服务接口
|
||||
*
|
||||
* @author tankaikai
|
||||
* @since 2025-03-01 15:34
|
||||
*/
|
||||
public interface HandoverRecordRpcService {
|
||||
|
||||
HandoverRecordDTO getHandoverRecordById(Long handoverRecordId);
|
||||
|
||||
}
|
||||
@@ -53,4 +53,12 @@ public interface HandoverRecordService extends IService<HandoverRecord> {
|
||||
*/
|
||||
Long handover();
|
||||
|
||||
/**
|
||||
* 交班打印小票
|
||||
*
|
||||
* @param handoverRecordId 交班记录id
|
||||
* @param isPrint 是否打印 1-是 0-否
|
||||
*/
|
||||
void printHandoverReceipt(Long handoverRecordId, Integer isPrint);
|
||||
|
||||
}
|
||||
@@ -147,4 +147,11 @@ public interface OrderInfoRpcService {
|
||||
* @param orderId 订单id
|
||||
*/
|
||||
void orderCancelCallback(Long orderId);
|
||||
|
||||
/**
|
||||
* 订单交班回调 发送答应交班小票消息至MQ
|
||||
*
|
||||
* @param handoverRecordId 交班记录id
|
||||
*/
|
||||
void sendHandoverReceiptPrintMsgToMq(Long handoverRecordId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user