Commit 068d4d90 by zhangzhendong

修改开关

parent f4f8d325
...@@ -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);
......
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