Showing
5 changed files
with
50 additions
and
1 deletions
@@ -23,11 +23,12 @@ | @@ -23,11 +23,12 @@ | ||
23 | 11、抽奖用户和拼团下单用户增加发券通知 2019-01-07 ADD BY LM 1.1.1 | 23 | 11、抽奖用户和拼团下单用户增加发券通知 2019-01-07 ADD BY LM 1.1.1 |
24 | 12、UFO增加调价场景通知 2019-01-29 ADD BY LM 1.1.2 | 24 | 12、UFO增加调价场景通知 2019-01-29 ADD BY LM 1.1.2 |
25 | 13、限定商品发售通知,UFO更低出售价提醒 2019-03-21 ADD BY LM 1.1.3 | 25 | 13、限定商品发售通知,UFO更低出售价提醒 2019-03-21 ADD BY LM 1.1.3 |
26 | + 14、UFO卖家取消和平台鉴定不通过交易关闭提醒 2019-04-24 ADD BY LM 1.1.4 | ||
26 | --> | 27 | --> |
27 | <groupId>com.yoho.dsf</groupId> | 28 | <groupId>com.yoho.dsf</groupId> |
28 | <artifactId>yoho-message-sdk</artifactId> | 29 | <artifactId>yoho-message-sdk</artifactId> |
29 | <name>yoho-message-sdk</name> | 30 | <name>yoho-message-sdk</name> |
30 | - <version>1.1.3-SNAPSHOT</version> | 31 | + <version>1.1.4-SNAPSHOT</version> |
31 | <packaging>jar</packaging> | 32 | <packaging>jar</packaging> |
32 | 33 | ||
33 | <dependencies> | 34 | <dependencies> |
@@ -15,4 +15,10 @@ public class UFOScenes { | @@ -15,4 +15,10 @@ public class UFOScenes { | ||
15 | //更低出售价提醒 商家未入驻 | 15 | //更低出售价提醒 商家未入驻 |
16 | public static final String UFO_LESS_PRICE = "UFO_LESS_PRICE"; | 16 | public static final String UFO_LESS_PRICE = "UFO_LESS_PRICE"; |
17 | 17 | ||
18 | + //卖家取消 交易关闭 | ||
19 | + public static final String UFO_SELLER_CANCEL = "UFO_SELLER_CANCEL"; | ||
20 | + | ||
21 | + //拼台鉴定不通过 交易关闭 | ||
22 | + public static final String UFO_PLAT_NOT_PASS = "UFO_PLAT_NOT_PASS"; | ||
23 | + | ||
18 | } | 24 | } |
@@ -39,4 +39,20 @@ public interface IUFOSendService { | @@ -39,4 +39,20 @@ public interface IUFOSendService { | ||
39 | * @return | 39 | * @return |
40 | */ | 40 | */ |
41 | SendMessageRspBo sendLessPrice(String uid,String productName,String size,String goodsNumber,String salePrice,String orderCode); | 41 | SendMessageRspBo sendLessPrice(String uid,String productName,String size,String goodsNumber,String salePrice,String orderCode); |
42 | + | ||
43 | + /** | ||
44 | + * 卖家取消 交易关闭 | ||
45 | + * @param uid | ||
46 | + * @param orderCode | ||
47 | + * @return | ||
48 | + */ | ||
49 | + SendMessageRspBo sellerCancelTrade(String uid,String orderCode); | ||
50 | + | ||
51 | + /** | ||
52 | + * 平台鉴定不通过 交易关闭 | ||
53 | + * @param uid | ||
54 | + * @param orderCode | ||
55 | + * @return | ||
56 | + */ | ||
57 | + SendMessageRspBo platformNotPass(String uid,String orderCode); | ||
42 | } | 58 | } |
@@ -75,4 +75,19 @@ public class UFOSendServiceImpl implements IUFOSendService{ | @@ -75,4 +75,19 @@ public class UFOSendServiceImpl implements IUFOSendService{ | ||
75 | messageCenterMqHandler.sendMessageToMq(commonEvent); | 75 | messageCenterMqHandler.sendMessageToMq(commonEvent); |
76 | return new SendMessageRspBo(200, "SUCCESS"); | 76 | return new SendMessageRspBo(200, "SUCCESS"); |
77 | } | 77 | } |
78 | + | ||
79 | + | ||
80 | + public SendMessageRspBo sellerCancelTrade(String uid,String orderCode){ | ||
81 | + MessageCenterCommonEvent commonEvent = genMessageCenterCommonEvent(UFOScenes.UFO_SELLER_CANCEL,uid,0,uid); | ||
82 | + commonEvent.putInParams("orderCode",orderCode); | ||
83 | + messageCenterMqHandler.sendMessageToMq(commonEvent); | ||
84 | + return new SendMessageRspBo(200, "SUCCESS"); | ||
85 | + } | ||
86 | + | ||
87 | + public SendMessageRspBo platformNotPass(String uid,String orderCode){ | ||
88 | + MessageCenterCommonEvent commonEvent = genMessageCenterCommonEvent(UFOScenes.UFO_PLAT_NOT_PASS,uid,0,uid); | ||
89 | + commonEvent.putInParams("orderCode",orderCode); | ||
90 | + messageCenterMqHandler.sendMessageToMq(commonEvent); | ||
91 | + return new SendMessageRspBo(200, "SUCCESS"); | ||
92 | + } | ||
78 | } | 93 | } |
@@ -33,5 +33,16 @@ public class TestUFOMessage { | @@ -33,5 +33,16 @@ public class TestUFOMessage { | ||
33 | } | 33 | } |
34 | 34 | ||
35 | 35 | ||
36 | + @Test | ||
37 | + public void sellerCancelTrade(){ | ||
38 | + ufoSendService.sellerCancelTrade("500031566", "9901975756610"); | ||
39 | + } | ||
40 | + | ||
41 | + @Test | ||
42 | + public void platformNotPass(){ | ||
43 | + ufoSendService.platformNotPass("500031566", "9901975756610"); | ||
44 | + } | ||
45 | + | ||
46 | + | ||
36 | } | 47 | } |
37 | 48 |
-
Please register or login to post a comment