Authored by tanling

fix

@@ -85,6 +85,14 @@ public class SendScenes { @@ -85,6 +85,14 @@ public class SendScenes {
85 // 待支付 85 // 待支付
86 public static final String MINI_WAITING_PAY = "MINI_WAITING_PAY"; 86 public static final String MINI_WAITING_PAY = "MINI_WAITING_PAY";
87 87
  88 + // 拼团成功
  89 + public static final String GROUP_ORDER_SUCCESS = "GROUP_ORDER_SUCCESS";
  90 +
  91 + // 拼团失败
  92 + public static final String GROUP_ORDER_FAIL = "GROUP_ORDER_FAIL";
  93 +
  94 + // 拼团进度
  95 + public static final String GROUP_ORDER_SPEED = "GROUP_ORDER_SPEED";
88 96
89 //上门换货审核通过 97 //上门换货审核通过
90 public static final String HOME_CHANGE_VERIFY_PASS = "HOME_CHANGE_VERIFY_PASS"; 98 public static final String HOME_CHANGE_VERIFY_PASS = "HOME_CHANGE_VERIFY_PASS";
@@ -368,6 +368,41 @@ public interface ISendOrderMessage { @@ -368,6 +368,41 @@ public interface ISendOrderMessage {
368 public SendMessageRspBo paySuccess(String uid, String orderCode, int payTime, String productName, String goodReceiptAddress, String orderAmount,int miniappFlg); 368 public SendMessageRspBo paySuccess(String uid, String orderCode, int payTime, String productName, String goodReceiptAddress, String orderAmount,int miniappFlg);
369 369
370 370
  371 + /**
  372 + * 拼团成功通知
  373 + * @param uid
  374 + * @param orderCode
  375 + * @param groupTime
  376 + * @param productName
  377 + * @param groupOrderAmount
  378 + * @return
  379 + */
  380 + public SendMessageRspBo fightGroupsSuccess(String uid, String orderCode, int groupTime, String productName, String groupOrderAmount);
  381 +
  382 +
  383 + /**
  384 + * 拼团失败
  385 + * @param uid
  386 + * @param orderCode
  387 + * @param groupFailTime
  388 + * @param productName
  389 + * @param groupOrderAmount
  390 + * @return
  391 + */
  392 + public SendMessageRspBo fightGroupsFail(String uid, String orderCode, int groupFailTime, String productName, String groupOrderAmount);
  393 +
  394 +
  395 + /**
  396 + * 拼团进度
  397 + * @param uid
  398 + * @param orderCode
  399 + * @param leftTime
  400 + * @param groupTime
  401 + * @param productName
  402 + * @param payAmount
  403 + * @return
  404 + */
  405 + public SendMessageRspBo fightGroupsSpeed(String uid, String orderCode, String leftTime, int groupTime, String productName, String payAmount);
371 406
372 407
373 } 408 }
@@ -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