Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
0800885e
Commit
0800885e
authored
Mar 14, 2023
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
好办消息通知id修改
parent
bdb362e5
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
NoticeMessageTypeEnum.java
...om/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
+1
-1
NotityTest.java
haoban-manage3-service/src/test/java/NotityTest.java
+15
-14
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/enums/NoticeMessageTypeEnum.java
View file @
0800885e
...
...
@@ -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
(
5
001
,
"素材上新通知"
,
NoticeMessageCategoryTypeEnum
.
MATERIAL
.
getType
(),
"material_new_notify"
,
"/pages/route/index?pageType="
,
"hbapp_customer_list"
),
MATERIAL_NEW_NOTIFY
(
6
001
,
"素材上新通知"
,
NoticeMessageCategoryTypeEnum
.
MATERIAL
.
getType
(),
"material_new_notify"
,
"/pages/route/index?pageType="
,
"hbapp_customer_list"
),
;
/**
...
...
haoban-manage3-service/src/test/java/NotityTest.java
View file @
0800885e
...
...
@@ -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
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment