Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 718966ef
authored
Dec 17, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
群发优化
1 parent
72792d43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
10 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupMessageTemplateServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMessageSendResultMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeGroupMessageTemplateServiceImpl.java
View file @
718966e
...
...
@@ -25,6 +25,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.data.redis.core.ZSetOperations
;
import
org.springframework.scheduling.annotation.Async
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Propagation
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.*
;
...
...
@@ -168,7 +169,7 @@ public class WeGroupMessageTemplateServiceImpl extends ServiceImpl<WeGroupMessag
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
,
propagation
=
Propagation
.
REQUIRED
)
@Override
public
void
addGroupMsgTemplate
(
WeAddGroupMessageQuery
query
)
throws
Exception
{
log
.
info
(
"addGroupMsgTemplate 入参:query:{}"
,
JSONObject
.
toJSONString
(
query
));
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeGroupMessageSendResultMapper.xml
View file @
718966e
...
...
@@ -24,21 +24,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
wgmsr.msg_id,
wgmsr.msg_template_id,
wgmsr.external_userid,
wc.name
as customer_name,
(select wc.name from we_customer wc where wc.external_userid = wgmsr.external_userid limit 1)
as customer_name,
wgmsr.user_id,
wu.
user_name,
(select wu.user_name from we_user wu where wu.user_id = wgmsr.user_id limit 1) as
user_name,
wgmsr.chat_id,
wg.group_name
as chat_name,
(select wg.group_name from we_group wg where wg.chat_id = wgmsr.chat_id limit 1)
as chat_name,
wgmsr.status,
wgmsr.send_time
from
we_group_message_send_result wgmsr
left join we_user wu on
wu.user_id = wgmsr.user_id
left join we_customer wc on
wc.external_userid = wgmsr.external_userid
left join we_group wg on
wg.chat_id = wgmsr.chat_id
<where>
<if
test=
"id !=null"
>
and wgmsr.id = #{id}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment