|
|
package com.yoho.message.sdk.service.product;
|
|
|
|
|
|
import com.yoho.message.sdk.common.constants.SendScenes;
|
|
|
import com.yoho.message.sdk.common.constants.YouZhuanScenes;
|
|
|
import com.yoho.message.sdk.common.handler.MessageCenterMqHandler;
|
|
|
import com.yoho.message.sdk.common.model.MessageCenterCommonEvent;
|
|
|
import com.yoho.message.sdk.common.model.SendMessageRspBo;
|
...
|
...
|
@@ -9,7 +10,10 @@ import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
/**
|
|
|
* Created by min.ling on 2018/8/3.
|
|
|
*
|
|
|
* 有货有赚项目发送消息汇总
|
|
|
*
|
|
|
* @Author Created by min.ling on 2018/8/3.
|
|
|
*/
|
|
|
@Service
|
|
|
public class SendProductMessageImpl extends AbstractSendMessage implements ISendProductMessage {
|
...
|
...
|
@@ -20,16 +24,16 @@ public class SendProductMessageImpl extends AbstractSendMessage implements ISend |
|
|
/**
|
|
|
* 有货有赚项目 佣金结算提醒
|
|
|
*
|
|
|
* @param uid
|
|
|
* @param orderNum 订单数量
|
|
|
* @param orderAmount 订单金额
|
|
|
* @return
|
|
|
* @param uid 接收用户UID
|
|
|
* @param CommissionAmount 佣金总金额
|
|
|
* @param moneyArriveTime 结算到账时间
|
|
|
* @return 返回成功标志
|
|
|
*/
|
|
|
@Override
|
|
|
public SendMessageRspBo commissionNotice(String uid, String orderNum, String orderAmount) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.YOZHUAN_COMMISSION_SETTLEMENT, uid, uid);
|
|
|
messageCenterCommonEvent.putInParams("orderNum", orderNum);
|
|
|
messageCenterCommonEvent.putInParams("orderAmount", orderAmount);
|
|
|
public SendMessageRspBo commissionNotice(String uid, String CommissionAmount, String moneyArriveTime) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(YouZhuanScenes.YOZHUAN_COMMISSION_SETTLEMENT, uid, uid);
|
|
|
messageCenterCommonEvent.putInParams("CommissionAmount", CommissionAmount);
|
|
|
messageCenterCommonEvent.putInParams("moneyArriveTime", moneyArriveTime);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
...
|
...
|
@@ -37,18 +41,16 @@ public class SendProductMessageImpl extends AbstractSendMessage implements ISend |
|
|
/**
|
|
|
* 有货有赚项目 提现打款提醒
|
|
|
*
|
|
|
* @param uid
|
|
|
* @param accountCode
|
|
|
* @param accountAmount
|
|
|
* @param accountTime
|
|
|
* @return
|
|
|
* @param uid 接收用户UID
|
|
|
* @param totalAmount 打款总金额
|
|
|
* @param moneyArriveTime 打款到账时间
|
|
|
* @return 返回成功标志
|
|
|
*/
|
|
|
@Override
|
|
|
public SendMessageRspBo cashAccountNotice(String uid, String accountCode, String accountAmount, String accountTime) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.YOZHUAN_CRASH_ACCOUNT, accountCode, uid);
|
|
|
messageCenterCommonEvent.putInParams("accountCode", accountCode);
|
|
|
messageCenterCommonEvent.putInParams("accountAmount", accountAmount);
|
|
|
messageCenterCommonEvent.putInParams("accountTime", accountTime);
|
|
|
public SendMessageRspBo cashAccountNotice(String uid, String totalAmount, String moneyArriveTime) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(YouZhuanScenes.YOZHUAN_CRASH_ACCOUNT, uid, uid);
|
|
|
messageCenterCommonEvent.putInParams("totalAmount", totalAmount);
|
|
|
messageCenterCommonEvent.putInParams("moneyArriveTime", moneyArriveTime);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
...
|
...
|
@@ -56,14 +58,18 @@ public class SendProductMessageImpl extends AbstractSendMessage implements ISend |
|
|
/**
|
|
|
* 有货有赚项目 订单任务完成提醒
|
|
|
*
|
|
|
* @param uid
|
|
|
* @param ForecastIncome
|
|
|
* @return
|
|
|
* @param uid 接收用户UID
|
|
|
* @param activeName 活动名称
|
|
|
* @param activeCommission 获得奖励预估收入金额
|
|
|
* @param activeEndTime 活动结束时间
|
|
|
* @return 返回成功标志
|
|
|
*/
|
|
|
@Override
|
|
|
public SendMessageRspBo orderCompletedNotice(String uid, String ForecastIncome) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.YOZHUAN_ORDER_COMPLETE, uid, uid);
|
|
|
messageCenterCommonEvent.putInParams("ForecastIncome", ForecastIncome);
|
|
|
public SendMessageRspBo orderCompletedNotice(String uid, String activeName, String activeCommission, String activeEndTime) {
|
|
|
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(YouZhuanScenes.YOZHUAN_ORDER_COMPLETE, uid, uid);
|
|
|
messageCenterCommonEvent.putInParams("activeName", activeName);
|
|
|
messageCenterCommonEvent.putInParams("activeCommission", activeCommission);
|
|
|
messageCenterCommonEvent.putInParams("activeEndTime", activeEndTime);
|
|
|
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
|
|
|
return new SendMessageRspBo(200, "SUCCESS");
|
|
|
}
|
...
|
...
|
|