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
068d4d90
Commit
068d4d90
authored
May 15, 2023
by
zhangzhendong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改开关
parent
f4f8d325
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
MaterialReportServiceImpl.java
...rvice/service/content/impl/MaterialReportServiceImpl.java
+9
-6
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/content/impl/MaterialReportServiceImpl.java
View file @
068d4d90
...
@@ -106,12 +106,6 @@ public class MaterialReportServiceImpl implements MaterialReportService {
...
@@ -106,12 +106,6 @@ public class MaterialReportServiceImpl implements MaterialReportService {
// 保存小程序消息
// 保存小程序消息
List
<
NoticeMessageBO
>
noticeMessageBos
=
context
.
buildNotifyMessageBos
();
List
<
NoticeMessageBO
>
noticeMessageBos
=
context
.
buildNotifyMessageBos
();
if
(
StringUtils
.
isBlank
(
context
.
getClerkId
()))
{
log
.
info
(
"成员{}在企业{}中不存在主门店, 不推送企微应用消息"
,
staffId
,
enterpriseId
);
return
;
}
if
(!
ApolloUtils
.
useMessageCenter
()){
if
(!
ApolloUtils
.
useMessageCenter
()){
log
.
info
(
"消息中心-走老版消息通知"
);
log
.
info
(
"消息中心-走老版消息通知"
);
/*消息中心修改此处*/
/*消息中心修改此处*/
...
@@ -120,6 +114,15 @@ public class MaterialReportServiceImpl implements MaterialReportService {
...
@@ -120,6 +114,15 @@ public class MaterialReportServiceImpl implements MaterialReportService {
}
}
}
}
if
(
StringUtils
.
isBlank
(
context
.
getClerkId
()))
{
log
.
info
(
"成员{}在企业{}中不存在主门店, 不推送企微应用消息"
,
staffId
,
enterpriseId
);
if
(
ApolloUtils
.
useMessageCenter
())
{
noticeMessageService
.
addNoticeMessageBatch
(
noticeMessageBos
);
}
return
;
}
// 发送企微消息
// 发送企微消息
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffInfo
.
getWxEnterpriseId
());
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
staffInfo
.
getWxEnterpriseId
());
QywxNewsSendMessageDTO
newsSendMessageDTO
=
materialReportBuilder
.
buildQywxNewsMessage
(
context
,
qwDTO
);
QywxNewsSendMessageDTO
newsSendMessageDTO
=
materialReportBuilder
.
buildQywxNewsMessage
(
context
,
qwDTO
);
...
...
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