|
@@ -19,18 +19,20 @@ public class SendPromotionMessageImpl extends AbstractSendMessage implements ISe |
|
@@ -19,18 +19,20 @@ public class SendPromotionMessageImpl extends AbstractSendMessage implements ISe |
19
|
private MessageCenterMqHandler messageCenterMqHandler;
|
19
|
private MessageCenterMqHandler messageCenterMqHandler;
|
20
|
|
20
|
|
21
|
@Override
|
21
|
@Override
|
22
|
- public SendMessageRspBo inviteCouponWait(String uid, String orderCode, String reward) {
|
22
|
+ public SendMessageRspBo inviteCouponWait(String uid, String orderCode, String reward, String firstOrderUid) {
|
23
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(PromotionScenes.INVITE_COUPON_WAIT, orderCode, uid);
|
23
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(PromotionScenes.INVITE_COUPON_WAIT, orderCode, uid);
|
24
|
messageCenterCommonEvent.putInParams("amount", reward);
|
24
|
messageCenterCommonEvent.putInParams("amount", reward);
|
|
|
25
|
+ messageCenterCommonEvent.putInParams("firstOrderUid", firstOrderUid);
|
25
|
|
26
|
|
26
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
27
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
27
|
return new SendMessageRspBo(200, "SUCCESS");
|
28
|
return new SendMessageRspBo(200, "SUCCESS");
|
28
|
}
|
29
|
}
|
29
|
|
30
|
|
30
|
@Override
|
31
|
@Override
|
31
|
- public SendMessageRspBo inviteCouponSend(String uid, String orderCode, String reward) {
|
32
|
+ public SendMessageRspBo inviteCouponSend(String uid, String orderCode, String reward, String firstOrderUid) {
|
32
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(PromotionScenes.INVITE_COUPON_SEND, orderCode, uid);
|
33
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(PromotionScenes.INVITE_COUPON_SEND, orderCode, uid);
|
33
|
messageCenterCommonEvent.putInParams("amount", reward);
|
34
|
messageCenterCommonEvent.putInParams("amount", reward);
|
|
|
35
|
+ messageCenterCommonEvent.putInParams("firstOrderUid", firstOrderUid);
|
34
|
|
36
|
|
35
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
37
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
36
|
return new SendMessageRspBo(200, "SUCCESS");
|
38
|
return new SendMessageRspBo(200, "SUCCESS");
|