Authored by unknown

抽奖拼团用户新增发券通知场景

... ... @@ -20,11 +20,12 @@
8、限定发售服务号模板 2018-11-20 ADD BY LM 1.0.8
9、砍价新增砍价id参数 2018-11-29 ADD BY LM 1.0.9
10、拼团服务号通知增加小程序跳转链接 2018-12-03 ADD BY LM 1.1.0
11、抽奖用户和拼团下单用户增加发券通知 2019-01-07 ADD BY LM 1.1.1
-->
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-message-sdk</artifactId>
<name>yoho-message-sdk</name>
<version>1.1.0-SNAPSHOT</version>
<version>1.1.1-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
... ...
... ... @@ -107,5 +107,8 @@ public class SendScenes {
//退款成功 补加小程序通知 因为同为优先级一,暂新增场景处理
public static final String REFUND_SUCCESS_MINI = "REFUND_SUCCESS_MINI";
//拼团或者参与yoluck抽奖 无出拼团外订单 发券通知
public static final String GROUP_COUPON_NOTICE = "GROUP_COUPON_NOTICE";
}
... ...
... ... @@ -11,8 +11,6 @@ public interface ISendCrmMessage {
* @taskId <br>
* @param uid
* @param productSkn
* @param inboxContent
* @param inboxTypeId
* @param imgUrl
* @return <br>
*/
... ... @@ -29,4 +27,16 @@ public interface ISendCrmMessage {
* @return <br>
*/
SendMessageRspBo generalSceneMsg(String mobiles, String content);
/**
* 拼团和抽奖无官网订单用户发券通知
* @param uid
* @param couponAmount 优惠券金额
* @param couponDateTime 优惠券发放时间 yyyy-MM-dd HH:mm:ss
* @param couponExpireDays 优惠券有效天数
* @return
*/
SendMessageRspBo sendGroupCouponNotice(String uid,String couponAmount,String couponDateTime,String couponExpireDays);
}
... ...
package com.yoho.message.sdk.service.crm.impl;
import java.util.Arrays;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.yoho.message.sdk.common.constants.SendScenes;
import com.yoho.message.sdk.common.handler.MessageCenterMqHandler;
import com.yoho.message.sdk.common.model.MessageCenterCommonEvent;
import com.yoho.message.sdk.common.model.SendMessageRspBo;
import com.yoho.message.sdk.service.AbstractSendMessage;
import com.yoho.message.sdk.service.crm.ISendCrmMessage;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.Arrays;
import java.util.List;
@Service
public class SendCrmMessageImpl extends AbstractSendMessage implements ISendCrmMessage {
... ... @@ -62,4 +61,23 @@ public class SendCrmMessageImpl extends AbstractSendMessage implements ISendCrmM
}
return new SendMessageRspBo(200, "SUCCESS");
}
/**
* 拼团和抽奖无官网订单用户发券通知
* @param uid
* @param couponAmount 优惠券金额
* @param couponDateTime 优惠券发放时间 yyyy-MM-dd HH:mm:ss
* @param couponExpireDays 优惠券有效天数
* @return
*/
public SendMessageRspBo sendGroupCouponNotice(String uid,String couponAmount,String couponDateTime,String couponExpireDays){
MessageCenterCommonEvent messageCenterCommonEvent = genMessageCenterCommonEvent(SendScenes.GROUP_COUPON_NOTICE, uid, uid);
messageCenterCommonEvent.putInParams("couponAmount", couponAmount);
messageCenterCommonEvent.putInParams("couponDateTime", couponDateTime);
messageCenterCommonEvent.putInParams("couponExpireDays", couponExpireDays);
messageCenterMqHandler.sendMessageToMq(messageCenterCommonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
... ...