Commit 0800885e by 王祖波

好办消息通知id修改

parent bdb362e5
......@@ -59,7 +59,7 @@ public enum NoticeMessageTypeEnum {
CUSTOMER_SUCCESS_ORDER_REFUND(4006, "客户成功退单通知", NoticeMessageCategoryTypeEnum.CUSTOMER.getType(), "customer_success_order_refund", "/pages/route/index?pageType=", "hbapp_user_bill_detail"),
// todo pageType
MATERIAL_NEW_NOTIFY(5001, "素材上新通知", NoticeMessageCategoryTypeEnum.MATERIAL.getType(), "material_new_notify", "/pages/route/index?pageType=", "hbapp_customer_list"),
MATERIAL_NEW_NOTIFY(6001, "素材上新通知", NoticeMessageCategoryTypeEnum.MATERIAL.getType(), "material_new_notify", "/pages/route/index?pageType=", "hbapp_customer_list"),
;
/**
......
......@@ -66,20 +66,21 @@ public class NotityTest {
@Test
public void batchSendMessage() {
NotifyMessageBatchQDTO qdto = new NotifyMessageBatchQDTO();
qdto.setStoreIdList(Lists.newArrayList("ff8080817c2b4c55017c30a4482800d7"));
qdto.setOptTargetId("-1");
Map<String, Object> map1 = new HashMap<>();
map1.put("materialNotifyId", 111);
qdto.setExtendContent(map1);
qdto.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
qdto.setMessageType(NoticeMessageTypeEnum.MATERIAL_NEW_NOTIFY.getType());
qdto.setTemplateCode(NoticeMessageTypeEnum.MATERIAL_NEW_NOTIFY.getTemplateCode());
qdto.setTitle("素材上新通知");
Map<String, String> map = new HashMap<>();
map.put("content", "有新的素材了,快来看啊!");
qdto.setContentMap(map);
noticeMessageApiService.batchSendMessage(qdto);
// NotifyMessageBatchQDTO qdto = new NotifyMessageBatchQDTO();
// qdto.setStoreIdList(Lists.newArrayList("ff8080817c2b4c55017c30a4482800d7"));
// qdto.setOptTargetId("-1");
// Map<String, Object> map1 = new HashMap<>();
// map1.put("materialNotifyId", 111);
// qdto.setExtendContent(map1);
// qdto.setEnterpriseId("ff8080815dacd3a2015dacd3ef5c0000");
// qdto.setMessageType(NoticeMessageTypeEnum.MATERIAL_NEW_NOTIFY.getType());
// qdto.setTemplateCode(NoticeMessageTypeEnum.MATERIAL_NEW_NOTIFY.getTemplateCode());
// qdto.setTitle("素材上新通知");
// Map<String, String> map = new HashMap<>();
// map.put("content", "有新的素材了,快来看啊!");
// qdto.setContentMap(map);
NotifyMessageBatchQDTO batchQDTO = JSONObject.parseObject("{\"checkFlag\":false,\"contentMap\":{\"content\":\"新素材快去转发呀!!!\"},\"enterpriseId\":\"ff8080815dacd3a2015dacd3ef5c0000\",\"extendContent\":{\"materialNotifyId\":508693912927727617},\"messageType\":5001,\"optTargetId\":\"508693912927727617\",\"storeIdList\":[\"ff8080817c2b4c55017c30a4482800d7\"],\"templateCode\":\"material_new_notify\",\"title\":\"上新素材啦!!\"}", NotifyMessageBatchQDTO.class);
noticeMessageApiService.batchSendMessage(batchQDTO);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment