Authored by Amos_sdy

5.5版本订单消息修改

... ... @@ -23,7 +23,7 @@ public interface ISendOrderMessage {
public SendMessageRspBo firstOrderGetCoupon(String uid, String orderCode);
/**
* 退换货审核通过
* 退换货审核通过--发push
*
* @param uid
* @param orderCode
... ... @@ -33,6 +33,20 @@ public interface ISendOrderMessage {
public SendMessageRspBo exchangeGoodsVerifyPass(String uid, String orderCode, int id, int type);
/**
*
* Description:退换货审核通过--只发短信 <br>
*
* @author amos.shan<br>
* @taskId <br>
* @param mobile
* @param orderCode
* @param uName
* @param type
* @return <br>
*/
public SendMessageRspBo exchangeGoodsVerifyPassSms(String mobile, String orderCode, String uName, int type);
/**
* 退款预计到账时间通知
*
* @param uid
... ... @@ -58,7 +72,7 @@ public interface ISendOrderMessage {
/**
*
* Description: 订单发货通知<br>
* Description: 订单发货通知--发短信<br>
*
* @author amos.shan<br>
* @taskId <br>
... ... @@ -73,6 +87,18 @@ public interface ISendOrderMessage {
public SendMessageRspBo orderSendOut(String uid, String uName, String orderCode, String companyName, String expressNum, String arriveDate);
/**
*
* Description: 订单发货通知--发push<br>
*
* @author amos.shan<br>
* @taskId <br>
* @param uid
* @param orderCode
* @return <br>
*/
public SendMessageRspBo orderSendOutPush(String uid, String orderCode);
/**
* 线下店订单线上发货发票通知
*
* @return
... ...
... ... @@ -52,6 +52,24 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
}
@Override
public SendMessageRspBo exchangeGoodsVerifyPassSms(String mobile, String orderCode, String uName, int type) {
MessageCenterCommonEvent messageCenterCommonEvent = new MessageCenterCommonEvent();
if (type == 1) {
// 退货
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.REFUND_GOODS_VERIFY_PASS, orderCode, "");
} else if (type == 2) {
// 换货
messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.EXCHANGE_GOODS_VERIFY_PASS, orderCode, "");
}
messageCenterCommonEvent.putInParams("mobile", mobile);
messageCenterCommonEvent.putInParams("orderCode", orderCode);
messageCenterCommonEvent.putInParams("uName", uName);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
@Override
public SendMessageRspBo refundExpectReach(String uid, String orderCode, String payType, int refundId) {
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.REFUND_EXPECT_REACH,orderCode,uid);
messageCenterCommonEvent.putInParams("orderCode", orderCode);
... ... @@ -87,6 +105,15 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
}
@Override
public SendMessageRspBo orderSendOutPush(String uid, String orderCode) {
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.ORDER_SEND_OUT, orderCode, uid);
messageCenterCommonEvent.putInParams("orderCode", orderCode);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
@Override
public SendMessageRspBo sendShopsOrderInvoiceOnline(String mobile, String userName, String orderCode, String companyName, String expressNum, String link) {
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.SHOPS_ORDER_INVOICE_ONLINE,orderCode,"");
messageCenterCommonEvent.putInParams("orderCode", orderCode);
... ...