Authored by unknown

update

... ... @@ -28,4 +28,13 @@ public class GroupScenes {
//拼团即将结束
public static final String GROUP_COMMING_TO_END = "GROUP_COMMING_TO_END";
//砍价进度提醒
public static final String CUT_PRICE_PROGRESS = "CUT_PRICE_PROGRESS";
//砍价成功通知
public static final String CUT_PRICE_SUCCESS = "CUT_PRICE_SUCCESS";
//砍价失败通知
public static final String CUT_PRICE_FAIL = "CUT_PRICE_FAIL";
}
... ...
... ... @@ -107,13 +107,5 @@ public class SendScenes {
//退款成功 补加小程序通知 因为同为优先级一,暂新增场景处理
public static final String REFUND_SUCCESS_MINI = "REFUND_SUCCESS_MINI";
//砍价进度提醒
public static final String CUT_PRICE_PROGRESS = "CUT_PRICE_PROGRESS";
//砍价成功通知
public static final String CUT_PRICE_SUCCESS = "CUT_PRICE_SUCCESS";
//砍价失败通知
public static final String CUT_PRICE_FAIL = "CUT_PRICE_FAIL";
}
... ...
... ... @@ -83,4 +83,34 @@ public interface IGroupOrderService {
*/
SendMessageRspBo fightGroupsSpeed(String uid, String orderCode, String leftTime, int leftNum, int groupTime, String productName, String payAmount);
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc);
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice);
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice);
}
... ...
... ... @@ -368,36 +368,4 @@ public interface ISendOrderMessage {
public SendMessageRspBo paySuccess(String uid, String orderCode, int payTime, String productName, String goodReceiptAddress, String orderAmount,int miniappFlg);
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc);
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice);
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice);
}
... ...
... ... @@ -154,4 +154,56 @@ public class GroupOrderServiceImpl extends AbstractSendMessage implements IGroup
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
public SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(GroupScenes.CUT_PRICE_PROGRESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("remainTime", remainTime);
messageCenterCommonEvent.putInParams("cutDesc", cutDesc);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
public SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(GroupScenes.CUT_PRICE_SUCCESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("originPrice", originPrice);
messageCenterCommonEvent.putInParams("currentPrice", currentPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
public SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(GroupScenes.CUT_PRICE_FAIL, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("failReason", failReason);
messageCenterCommonEvent.putInParams("cutPrice", cutPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
... ...
... ... @@ -502,56 +502,4 @@ public class SendOrderMessageImpl extends AbstractSendMessage implements ISendOr
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价进度提醒
* @param uid
* @param productName 商品名称
* @param remainTime 剩余时间
* @param cutDesc 砍价描述
* @return
*/
public SendMessageRspBo cutPriceProgress(String uid, String productName, String remainTime, String cutDesc){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_PROGRESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("remainTime", remainTime);
messageCenterCommonEvent.putInParams("cutDesc", cutDesc);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价成功提醒
* @param uid
* @param productName 商品名称
* @param originPrice 砍价前原价
* @param currentPrice 现在价格
* @return
*/
public SendMessageRspBo cutPriceSuccess(String uid, String productName, String originPrice, String currentPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_SUCCESS, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("originPrice", originPrice);
messageCenterCommonEvent.putInParams("currentPrice", currentPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 砍价失败提醒
* @param uid
* @param productName 商品名称
* @param failReason 失败原因
* @param cutPrice 砍掉价格
* @return
*/
public SendMessageRspBo cutPriceFail(String uid, String productName, String failReason, String cutPrice){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.CUT_PRICE_FAIL, uid, uid);
messageCenterCommonEvent.putInParams("productName", productName);
messageCenterCommonEvent.putInParams("failReason", failReason);
messageCenterCommonEvent.putInParams("cutPrice", cutPrice);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
\ No newline at end of file
... ...