Authored by min.ling

ufo-交易关闭提醒

... ... @@ -23,11 +23,12 @@
11、抽奖用户和拼团下单用户增加发券通知 2019-01-07 ADD BY LM 1.1.1
12、UFO增加调价场景通知 2019-01-29 ADD BY LM 1.1.2
13、限定商品发售通知,UFO更低出售价提醒 2019-03-21 ADD BY LM 1.1.3
14、UFO卖家取消和平台鉴定不通过交易关闭提醒 2019-04-24 ADD BY LM 1.1.4
-->
<groupId>com.yoho.dsf</groupId>
<artifactId>yoho-message-sdk</artifactId>
<name>yoho-message-sdk</name>
<version>1.1.3-SNAPSHOT</version>
<version>1.1.4-SNAPSHOT</version>
<packaging>jar</packaging>
<dependencies>
... ...
... ... @@ -15,4 +15,10 @@ public class UFOScenes {
//更低出售价提醒 商家未入驻
public static final String UFO_LESS_PRICE = "UFO_LESS_PRICE";
//卖家取消 交易关闭
public static final String UFO_SELLER_CANCEL = "UFO_SELLER_CANCEL";
//拼台鉴定不通过 交易关闭
public static final String UFO_PLAT_NOT_PASS = "UFO_PLAT_NOT_PASS";
}
... ...
... ... @@ -39,4 +39,20 @@ public interface IUFOSendService {
* @return
*/
SendMessageRspBo sendLessPrice(String uid,String productName,String size,String goodsNumber,String salePrice,String orderCode);
/**
* 卖家取消 交易关闭
* @param uid
* @param orderCode
* @return
*/
SendMessageRspBo sellerCancelTrade(String uid,String orderCode);
/**
* 平台鉴定不通过 交易关闭
* @param uid
* @param orderCode
* @return
*/
SendMessageRspBo platformNotPass(String uid,String orderCode);
}
... ...
... ... @@ -75,4 +75,19 @@ public class UFOSendServiceImpl implements IUFOSendService{
messageCenterMqHandler.sendMessageToMq(commonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
public SendMessageRspBo sellerCancelTrade(String uid,String orderCode){
MessageCenterCommonEvent commonEvent = genMessageCenterCommonEvent(UFOScenes.UFO_SELLER_CANCEL,uid,0,uid);
commonEvent.putInParams("orderCode",orderCode);
messageCenterMqHandler.sendMessageToMq(commonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
public SendMessageRspBo platformNotPass(String uid,String orderCode){
MessageCenterCommonEvent commonEvent = genMessageCenterCommonEvent(UFOScenes.UFO_PLAT_NOT_PASS,uid,0,uid);
commonEvent.putInParams("orderCode",orderCode);
messageCenterMqHandler.sendMessageToMq(commonEvent);
return new SendMessageRspBo(200, "SUCCESS");
}
}
... ...
... ... @@ -33,5 +33,16 @@ public class TestUFOMessage {
}
@Test
public void sellerCancelTrade(){
ufoSendService.sellerCancelTrade("500031566", "9901975756610");
}
@Test
public void platformNotPass(){
ufoSendService.platformNotPass("500031566", "9901975756610");
}
}
... ...