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
bad2f9cf
Commit
bad2f9cf
authored
Oct 09, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
素材审批消息
parent
1555f44f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
ContentCreativeController.java
...age/web/controller/content/ContentCreativeController.java
+12
-12
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/content/ContentCreativeController.java
View file @
bad2f9cf
package
com
.
gic
.
haoban
.
manage
.
web
.
controller
.
content
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.gic.api.base.commons.BasePageInfo
;
import
com.gic.api.base.commons.Constant
;
import
com.gic.api.base.commons.Page
;
...
...
@@ -144,22 +145,21 @@ public class ContentCreativeController {
private
void
send
(
String
enterpriseId
,
Map
<
String
,
String
>
map
,
String
msgCode
)
{
log
.
info
(
"发送消息={}"
,
msgCode
);
/* String mqName = "haobanNotice";
NoticeMessageForm noticeMessageForm = new NoticeMessageForm();
noticeMessageForm.setMessageCode(msgCode);
noticeMessageForm.setMqRouterCode(mqName);
noticeMessageForm.setEnterpriseId(enterpriseId);
noticeMessageForm.setBusinessId(ToolUtil.randomUUID());
noticeMessageForm.setUniqueKey(UniqueIdUtils.uniqueLongHex());
noticeMessageForm.setUserIdList(null);
noticeMessageForm.setCreateTime(new Date());
noticeMessageForm.setVariableMap(map);
String
mqName
=
"haobanNotice"
;
JSONObject
json
=
new
JSONObject
()
;
json
.
put
(
"messageCode"
,
msgCode
)
;
json
.
put
(
"mqRouterCode"
,
mqName
)
;
json
.
put
(
"enterpriseId"
,
enterpriseId
)
;
json
.
put
(
"businessId"
,
ToolUtil
.
randomUUID
())
;
json
.
put
(
"uniqueKey"
,
UniqueIdUtils
.
uniqueLongHex
())
;
json
.
put
(
"createTime"
,
new
Date
())
;
json
.
put
(
"variableMap"
,
map
)
;
try
{
GicMQClient
client
=
GICMQClientUtil
.
getClientInstance
();
client.sendMessage(mqName, JSON.toJSONString(
noticeMessageForm
));
client
.
sendMessage
(
mqName
,
JSON
.
toJSONString
(
json
));
}
catch
(
Exception
e
)
{
log
.
info
(
"异常"
,
e
);
}
*/
}
}
/**
...
...
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