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 a04e4931
authored
Dec 23, 2021
by
danmo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1、修复新客拉群欢迎语bug
2、修复回调生成客户轨迹bug
1 parent
0585bcfd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeQrAttachments.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/welcome/WelcomeService.java
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
linkwe-wecom/src/main/java/com/linkwechat/wecom/domain/WeQrAttachments.java
View file @
a04e493
...
...
@@ -27,7 +27,6 @@ import lombok.Data;
*/
@ApiModel
@Data
@Builder
@SuppressWarnings
(
"serial"
)
@TableName
(
"we_qr_attachments"
)
public
class
WeQrAttachments
extends
BaseEntity
implements
Serializable
{
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/impl/WeCustomerServiceImpl.java
View file @
a04e493
...
...
@@ -595,7 +595,7 @@ public class WeCustomerServiceImpl extends ServiceImpl<WeCustomerMapper, WeCusto
//生成轨迹
iWeCustomerTrajectoryService
.
createTrajectory
(
ListUtil
.
toList
(
WeCustomerTrajectory
.
TrajectRel
.
builder
()
.
userId
(
externalUseri
d
)
.
userId
(
userI
d
)
.
customerId
(
externalUserid
)
.
build
()
),
TrajectoryType
.
TRAJECTORY_TYPE_XXDT
.
getType
(),
TrajectorySceneType
.
TRAJECTORY_TITLE_TJYG
.
getType
(),
...
...
linkwe-wecom/src/main/java/com/linkwechat/wecom/service/welcome/WelcomeService.java
View file @
a04e493
...
...
@@ -76,11 +76,13 @@ public class WelcomeService implements ApplicationListener<WeCustomerWelcomeQuer
}
else
if
(
query
.
getState
().
startsWith
(
WeConstans
.
WE_QR_XKLQ_PREFIX
)){
WeCommunityWeComeMsgVo
welcomeMsgByState
=
weCommunityNewGroupService
.
getWelcomeMsgByState
(
query
.
getState
());
if
(
welcomeMsgByState
!=
null
){
WeQrAttachments
textAtt
=
WeQrAttachments
.
builder
().
msgType
(
MessageType
.
TEXT
.
getMessageType
())
.
content
(
welcomeMsgByState
.
getWelcomeMsg
()).
build
();
WeQrAttachments
imageAtt
=
WeQrAttachments
.
builder
().
msgType
(
MessageType
.
IMAGE
.
getMessageType
())
.
mediaId
(
welcomeMsgByState
.
getCodeUrl
()).
build
();
WeQrAttachments
textAtt
=
new
WeQrAttachments
();
textAtt
.
setMsgType
(
MessageType
.
TEXT
.
getMessageType
());
textAtt
.
setContent
(
welcomeMsgByState
.
getWelcomeMsg
());
qrAttachments
.
add
(
textAtt
);
WeQrAttachments
imageAtt
=
new
WeQrAttachments
();
imageAtt
.
setMsgType
(
MessageType
.
IMAGE
.
getMessageType
());
imageAtt
.
setMediaId
(
welcomeMsgByState
.
getCodeUrl
());
qrAttachments
.
add
(
imageAtt
);
makeCustomerTag
(
query
.
getExternalUserId
(),
query
.
getUserId
(),
welcomeMsgByState
.
getTagList
());
}
...
...
linkwe-wecom/src/main/resources/mapper/wecom/WeCommunityNewGroupMapper.xml
View file @
a04e493
...
...
@@ -93,7 +93,7 @@
<resultMap
type=
"WeCommunityWeComeMsgVo"
id=
"WelcomeMsgResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"
welcomeMsg"
column=
"qr_code
"
/>
<result
property=
"
codeUrl"
column=
"code_url
"
/>
<result
property=
"welcomeMsg"
column=
"welcome_msg"
/>
<collection
property=
"tagList"
ofType=
"com.linkwechat.wecom.domain.vo.tag.WeTagVo"
>
<result
property=
"tagId"
column=
"tag_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