|
@@ -381,6 +381,53 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
|
@@ -381,6 +381,53 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr |
381
|
return new SendMessageRspBo(200, "SUCCESS");
|
381
|
return new SendMessageRspBo(200, "SUCCESS");
|
382
|
}
|
382
|
}
|
383
|
|
383
|
|
|
|
384
|
+ @Override
|
|
|
385
|
+ public SendMessageRspBo fightGroupsSuccess(String uid, String orderCode, int groupTime, String productName, String groupOrderAmount) {
|
|
|
386
|
+
|
|
|
387
|
+ MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_SUCCESS, orderCode, uid);
|
|
|
388
|
+
|
|
|
389
|
+ messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
390
|
+ messageCenterCommonEvent.putInParams("groupTime", DateUtils.long2DateStr(groupTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
391
|
+ messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
392
|
+
|
|
|
393
|
+ messageCenterCommonEvent.putInParams("groupOrderAmount", groupOrderAmount);
|
|
|
394
|
+
|
|
|
395
|
+ messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
396
|
+
|
|
|
397
|
+ return new SendMessageRspBo(200, "SUCCESS");
|
|
|
398
|
+ }
|
|
|
399
|
+
|
|
|
400
|
+ @Override
|
|
|
401
|
+ public SendMessageRspBo fightGroupsFail(String uid, String orderCode, int groupFailTime, String productName, String groupOrderAmount) {
|
|
|
402
|
+
|
|
|
403
|
+ MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_FAIL, orderCode, uid);
|
|
|
404
|
+
|
|
|
405
|
+ messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
406
|
+ messageCenterCommonEvent.putInParams("groupFailTime", DateUtils.long2DateStr(groupFailTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
407
|
+ messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
408
|
+
|
|
|
409
|
+ messageCenterCommonEvent.putInParams("groupOrderAmount", groupOrderAmount);
|
|
|
410
|
+
|
|
|
411
|
+ messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
412
|
+
|
|
|
413
|
+ return new SendMessageRspBo(200, "SUCCESS");
|
|
|
414
|
+ }
|
|
|
415
|
+
|
|
|
416
|
+ @Override
|
|
|
417
|
+ public SendMessageRspBo fightGroupsSpeed(String uid, String orderCode, String leftTime, int groupTime, String productName, String payAmount) {
|
|
|
418
|
+ MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_ORDER_SPEED, orderCode, uid);
|
|
|
419
|
+
|
|
|
420
|
+ messageCenterCommonEvent.putInParams("leftTime", leftTime);
|
|
|
421
|
+ messageCenterCommonEvent.putInParams("orderCode", orderCode);
|
|
|
422
|
+ messageCenterCommonEvent.putInParams("groupTime", DateUtils.long2DateStr(groupTime * 1000l, DateUtils.fullDateTimeFormat));
|
|
|
423
|
+ messageCenterCommonEvent.putInParams("productName", productName);
|
|
|
424
|
+
|
|
|
425
|
+ messageCenterCommonEvent.putInParams("payAmount", payAmount);
|
|
|
426
|
+
|
|
|
427
|
+ messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
428
|
+
|
|
|
429
|
+ return new SendMessageRspBo(200, "SUCCESS");
|
|
|
430
|
+ }
|
384
|
|
431
|
|
385
|
|
432
|
|
386
|
@Override
|
433
|
@Override
|