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
db3f18ca
Commit
db3f18ca
authored
Dec 27, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:消息
parent
2496208d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
NoticeMessageApiServiceImpl.java
...rvice/service/notify/out/NoticeMessageApiServiceImpl.java
+3
-0
NotityTest.java
haoban-manage3-service/src/test/java/NotityTest.java
+2
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/notify/out/NoticeMessageApiServiceImpl.java
View file @
db3f18ca
...
@@ -224,6 +224,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
...
@@ -224,6 +224,9 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
}
}
//需要替换的数据
//需要替换的数据
Map
<
String
,
String
>
contentMap
=
messageQDTO
.
getContentMap
();
Map
<
String
,
String
>
contentMap
=
messageQDTO
.
getContentMap
();
if
(
MapUtils
.
isEmpty
(
contentMap
))
{
return
haobanTemplateMessage
[
0
];
}
//替换的内容
//替换的内容
contentMap
.
forEach
((
k
,
v
)
->
{
contentMap
.
forEach
((
k
,
v
)
->
{
haobanTemplateMessage
[
0
]
=
haobanTemplateMessage
[
0
].
replaceAll
(
"\\#\\{"
+
k
+
"\\}"
,
v
);
haobanTemplateMessage
[
0
]
=
haobanTemplateMessage
[
0
].
replaceAll
(
"\\#\\{"
+
k
+
"\\}"
,
v
);
...
...
haoban-manage3-service/src/test/java/NotityTest.java
View file @
db3f18ca
...
@@ -46,8 +46,9 @@ public class NotityTest {
...
@@ -46,8 +46,9 @@ public class NotityTest {
noticeMessageQDTO
.
setOptTargetId
(
"testtatget"
);
noticeMessageQDTO
.
setOptTargetId
(
"testtatget"
);
noticeMessageQDTO
.
setExtendContent
(
extMap
);
noticeMessageQDTO
.
setExtendContent
(
extMap
);
String
str
=
"{\"extendContent\":{\"taskName\":\"上传12-26日报\",\"storeId\":\"ff8080816c45c82a016c46b4d3b70223\",\"taskId\":\"003a63918e2843f6a714f4e4ede4e874\"},\"messageType\":3031,\"clerkId\":\"836de7f9b607427089215c60116978e7\",\"enterpriseId\":\"ff8080815dacd3a2015dacd3ef5c0000\",\"mqTraceId\":\"590f4ded-3551-4e44-8bf8-4ff0d381c917\"}"
;
noticeMessageApiService
.
noticeMessageMq
(
JSONObject
.
toJSONString
(
noticeMessageQDTO
)
);
noticeMessageApiService
.
noticeMessageMq
(
str
);
}
}
@Test
@Test
...
...
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