...
|
...
|
@@ -213,26 +213,22 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo orderSendOutNew(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT_NEW, orderCode, uid);
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_NEW, uid, uName, orderCode, companyName, expressNum);
|
|
|
}
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
@Override
|
|
|
public SendMessageRspBo orderSendOutOther(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_OTHER, uid, uName, orderCode, companyName, expressNum);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo orderSendOutWarehouse(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT_WAREHOUSE, orderCode, uid);
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_WAREHOUSE, uid, uName, orderCode, companyName, expressNum);
|
|
|
}
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
@Override
|
|
|
public SendMessageRspBo orderSendOutOtherWarehouse(String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
return this.dealOrderSendOut(SendScenes.ORDER_SEND_OUT_OTHER_WAREHOUSE, uid, uName, orderCode, companyName, expressNum);
|
|
|
}
|
|
|
|
|
|
@Override
|
...
|
...
|
@@ -287,4 +283,15 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
} |
|
|
|
|
|
private SendMessageRspBo dealOrderSendOut(String sendScene, String uid, String uName, String orderCode, String companyName, String expressNum) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(sendScene, orderCode, uid);
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("companyName", companyName);
|
|
|
messageCenterCommonEvent.putInParams("expressNum", expressNum);
|
|
|
messageCenterCommonEvent.putInParams("uName", uName);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
} |
|
|
\ No newline at end of file |
...
|
...
|
|