|
|
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");
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|