Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
571543cc
Commit
571543cc
authored
Dec 18, 2021
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:新增外部联系人修改
parent
ea9010c7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
CheckQywxSettingApiService.java
...haoban/manage/api/service/CheckQywxSettingApiService.java
+1
-1
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+17
-5
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/CheckQywxSettingApiService.java
View file @
571543cc
...
...
@@ -24,7 +24,7 @@ public interface CheckQywxSettingApiService {
CheckFriendSettingDTO
getFriendSetting
();
/**
* 校验保存
*
加好友
校验保存
*
* @param externalUserDTO
* @param dto
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
571543cc
...
...
@@ -366,7 +366,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String
name
=
dto
.
getExternalName
();
String
createTime
=
dto
.
getAddCreateTime
();
String
externalUserId
=
dto
.
getExternalUserid
();
log
.
info
(
"新增外部联系人,wxEnterpriseId:{}"
,
wxEnterpriseId
);
if
(
StringUtils
.
isAnyBlank
(
wxUserId
,
wxEnterpriseId
,
name
,
createTime
,
externalUserId
))
{
checkQywxSettingApiService
.
saveFriendCallback
(
wxEnterpriseId
,
null
,
dto
);
return
;
...
...
@@ -387,15 +387,27 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
log
.
info
(
"【新增外部联系人】导购和clerk关联为空"
);
return
;
}
TabHaobanWxEnterpriseRelated
wxEnterpriseRelated
=
wxEnterpriseRelatedService
.
getByEnterpriseId
(
staffClerkRelationDTO
.
getWxEnterpriseId
(),
staffClerkRelationDTO
.
getEnterpriseId
());
TabHaobanWxEnterpriseRelated
wxEnterpriseRelated
=
wxEnterpriseRelatedService
.
getByEnterpriseId
(
wxEnterpriseId
,
staffClerkRelationDTO
.
getEnterpriseId
());
if
(
wxEnterpriseRelated
==
null
)
{
log
.
info
(
"没有存在企业关联:{},{}"
,
staffClerkRelationDTO
.
getWxEnterpriseId
(),
staffClerkRelationDTO
.
getEnterpriseId
());
return
;
}
//发送欢迎语
WxEnterpriseDTO
wxEnterpriseDTO
=
wxEnterpriseService
.
selectById
(
wxEnterpriseId
);
if
(
wxEnterpriseDTO
==
null
)
{
log
.
info
(
"未查询到企业:wxEnterpriseId:{}"
,
wxEnterpriseId
);
return
;
}
// TODO: 2021/12/18 先注释,后面打开
//String corpid = wxEnterpriseDTO.getCorpid();
//if (corpid.startsWith("ww")) {
// log.info("加好友ww开头的,走原来的逻辑(根据同一开平不同开平走):{}", corpid);
// addExternalClerkRelated(dto, staffId, staffClerkRelationDTO, wxEnterpriseRelated);
//} else {
// //发送欢迎语
// log.info("加好友wp开头的,走欢迎语:{}", corpid);
// addFriendByWelcome(dto, staffClerkRelationDTO);
//}
addFriendByWelcome
(
dto
,
staffClerkRelationDTO
);
//addExternalClerkRelated(dto, staffId, staffClerkRelationDTO, wxEnterpriseRelated);
}
/**
...
...
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