...
|
...
|
@@ -381,6 +381,53 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo fightGroupsSuccess(String uid, String orderCode, int groupTime, String productName, String groupOrderAmount) {
|
|
|
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_SUCCESS, orderCode, uid);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("groupTime", DateUtils.long2DateStr(groupTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("groupOrderAmount", groupOrderAmount);
|
|
|
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo fightGroupsFail(String uid, String orderCode, int groupFailTime, String productName, String groupOrderAmount) {
|
|
|
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_FAIL, orderCode, uid);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("groupFailTime", DateUtils.long2DateStr(groupFailTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("groupOrderAmount", groupOrderAmount);
|
|
|
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public SendMessageRspBo fightGroupsSpeed(String uid, String orderCode, String leftTime, int groupTime, String productName, String payAmount) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_SPEED, orderCode, uid);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("leftTime", leftTime);
|
|
|
messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
messageCenterCommonEvent.putInParams("groupTime", DateUtils.long2DateStr(groupTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
|
|
|
messageCenterCommonEvent.putInParams("payAmount", payAmount);
|
|
|
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
|
|
|
|
|
|
|
|
@Override
|
...
|
...
|
|