Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in
Toggle navigation
T
tanpu-community
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
探普后端
tanpu-community
Commits
f2b239ef
Commit
f2b239ef
authored
Mar 01, 2022
by
刘基明
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2.3.1' into 'master'
发送wxmp异常catch See merge request
!103
parents
023b0b0f
1c5b8e23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
TopicReportService.java
...om/tanpu/community/service/quartz/TopicReportService.java
+11
-4
ThemeEntityMapper.xml
...src/main/resources/mapper/community/ThemeEntityMapper.xml
+1
-1
No files found.
community-service/src/main/java/com/tanpu/community/service/quartz/TopicReportService.java
View file @
f2b239ef
...
...
@@ -7,18 +7,21 @@ import com.tanpu.community.dao.entity.community.TopicEntity;
import
com.tanpu.community.dao.entity.community.TopicManagerEntity
;
import
com.tanpu.community.feign.fatools.FeignClientForFatools
;
import
com.tanpu.community.feign.wxcp.FeignClientForWxcp
;
import
com.tanpu.community.manager.TopicManager
;
import
com.tanpu.community.service.CommentService
;
import
com.tanpu.community.service.ThemeService
;
import
com.tanpu.community.service.TopicService
;
import
com.tanpu.community.service.VisitLogService
;
import
lombok.extern.log4j.Log4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.stereotype.Service
;
import
java.util.*
;
import
java.util.ArrayList
;
import
java.util.Calendar
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
@Service
@Slf4j
...
...
@@ -156,7 +159,11 @@ public class TopicReportService {
parmMap
.
put
(
"list"
,
wxcpIds
);
log
.
info
(
"sendTopicReportMessage wxcpIds: {}, content: {}"
,
JSON
.
toJSONString
(
wxcpIds
),
content
);
feignClientForWxcp
.
sendMessage
(
agentId
,
corpId
,
JSON
.
toJSONString
(
parmMap
));
try
{
feignClientForWxcp
.
sendMessage
(
agentId
,
corpId
,
JSON
.
toJSONString
(
parmMap
));
}
catch
(
Exception
e
){
log
.
error
(
"圈子报告企业微信,发送wxmp微信客服消息失败,error:{}"
,
e
.
getMessage
());
}
}
public
List
<
String
>
getTopicManagerWxcpIds
(
String
topicId
)
{
...
...
community-service/src/main/resources/mapper/community/ThemeEntityMapper.xml
View file @
f2b239ef
...
...
@@ -42,7 +42,7 @@
select
<include
refid=
"Base_Column_List"
/>
from theme
where topic_id = #{topicId}
where topic_id = #{topicId}
and delete_tag = 0
order by update_time desc
limit 1
</select>
...
...
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