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 eb685fd1
authored
Nov 05, 2021
by
linkwechat8856@163.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会话存档客户重复问题修复
1 parent
e8fd3cd4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMsgTlpServiceImpl.java
linkwe-wecom/src/main/resources/mapper/wecom/WeChatContactMsgMapper.xml
linkwe-wecom/src/main/resources/mapper/wecom/WeMsgTlpMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeMsgTlpServiceImpl.java
View file @
eb685fd
...
@@ -29,8 +29,6 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
...
@@ -29,8 +29,6 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
@Autowired
@Autowired
private
WeMsgTlpMapper
weMsgTlpMapper
;
private
WeMsgTlpMapper
weMsgTlpMapper
;
@Autowired
private
IWeMsgTlpScopeService
iWeMsgTlpScopeService
;
/**
/**
* 查询欢迎语模板
* 查询欢迎语模板
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeChatContactMsgMapper.xml
View file @
eb685fd
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
where FIND_IN_SET(#{fromId}, to_list) and is_external = 0 and room_id = ''
where FIND_IN_SET(#{fromId}, to_list) and is_external = 0 and room_id = ''
order by msg_time desc
order by msg_time desc
) as msg group by receiver order by msg.msg_time desc) t
) as msg group by receiver order by msg.msg_time desc) t
inner join we_customer wc on t.receiver = wc.external_userid;
inner join we_customer wc on t.receiver = wc.external_userid
and wc.first_user_id=#{fromId}
;
</select>
</select>
<select
id=
"selectAloneChatList"
resultType=
"com.linkwechat.wecom.domain.vo.WeChatContactMsgVo"
>
<select
id=
"selectAloneChatList"
resultType=
"com.linkwechat.wecom.domain.vo.WeChatContactMsgVo"
>
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeMsgTlpMapper.xml
View file @
eb685fd
...
@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"welcomeMsgTplType !=null "
>
and wmt.welcome_msg_tpl_type = #{welcomeMsgTplType}
</if>
<if
test=
"welcomeMsgTplType !=null "
>
and wmt.welcome_msg_tpl_type = #{welcomeMsgTplType}
</if>
and wmt.del_flag = 0
and wmt.del_flag = 0
</where>
</where>
ORDER BY wmt.create_time DESC
</select>
</select>
...
@@ -54,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -54,6 +55,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"delFlag != null"
>
del_flag,
</if>
<if
test=
"delFlag != null"
>
del_flag,
</if>
<if
test=
"welcomeMsgTplType != null"
>
welcome_msg_tpl_type,
</if>
<if
test=
"welcomeMsgTplType != null"
>
welcome_msg_tpl_type,
</if>
<if
test=
"createBy != null "
>
create_by,
</if>
<if
test=
"createBy != null "
>
create_by,
</if>
<if
test=
"createTime !=null"
>
create_time,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<if
test=
"id != null"
>
#{id},
</if>
<if
test=
"id != null"
>
#{id},
</if>
...
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -62,6 +64,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"delFlag != null"
>
#{delFlag},
</if>
<if
test=
"delFlag != null"
>
#{delFlag},
</if>
<if
test=
"welcomeMsgTplType != null"
>
#{welcomeMsgTplType},
</if>
<if
test=
"welcomeMsgTplType != null"
>
#{welcomeMsgTplType},
</if>
<if
test=
"createBy != null "
>
#{createBy},
</if>
<if
test=
"createBy != null "
>
#{createBy},
</if>
<if
test=
"createTime !=null"
>
#{createTime},
</if>
</trim>
</trim>
</insert>
</insert>
...
...
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