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
0
Merge Requests
0
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
a4650ccb
Commit
a4650ccb
authored
Sep 27, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:加好友
parent
d37d72fb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
MemberUnionidRelatedApiService.java
...an/manage/api/service/MemberUnionidRelatedApiService.java
+4
-4
MemberUnionidRelatedApiServiceImpl.java
.../service/out/impl/MemberUnionidRelatedApiServiceImpl.java
+16
-6
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/MemberUnionidRelatedApiService.java
View file @
a4650ccb
...
@@ -11,7 +11,7 @@ public interface MemberUnionidRelatedApiService {
...
@@ -11,7 +11,7 @@ public interface MemberUnionidRelatedApiService {
/**
/**
* 根据导购导购微信id和会员id查询关联关系
* 根据导购导购微信id和会员id查询关联关系
*
*
* @param
wxUser
Id : 导购微信id
* @param
staff
Id : 导购微信id
* @param memberId : 会员id
* @param memberId : 会员id
* @return : 返回导购与会员关联关系
* @return : 返回导购与会员关联关系
*/
*/
...
@@ -65,7 +65,7 @@ public interface MemberUnionidRelatedApiService {
...
@@ -65,7 +65,7 @@ public interface MemberUnionidRelatedApiService {
* 群发助手发送企业微信消息
* 群发助手发送企业微信消息
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @param
user
Id
* @param
staff
Id
* @param extendUserList
* @param extendUserList
* @param materialId
* @param materialId
* @return {@link String }
* @return {@link String }
...
@@ -78,7 +78,7 @@ public interface MemberUnionidRelatedApiService {
...
@@ -78,7 +78,7 @@ public interface MemberUnionidRelatedApiService {
* 创建企业群发, 支出素材批量发送
* 创建企业群发, 支出素材批量发送
*
*
* @param wxEnterpriseId : 微信企业id
* @param wxEnterpriseId : 微信企业id
* @param
user
Id : 用户id
* @param
staff
Id : 用户id
* @param extendUserList : 发送的用户id
* @param extendUserList : 发送的用户id
* @param materialIdList : 素材id列表
* @param materialIdList : 素材id列表
* @return : 返回群发执行结果
* @return : 返回群发执行结果
...
@@ -181,7 +181,7 @@ public interface MemberUnionidRelatedApiService {
...
@@ -181,7 +181,7 @@ public interface MemberUnionidRelatedApiService {
* 清理外部联系人
* 清理外部联系人
*
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @param
wxUser
Id
* @param
staff
Id
* @param externalUserIds
* @param externalUserIds
*/
*/
void
cleanNoExsitFriendNew
(
String
wxEnterpriseId
,
String
staffId
,
List
<
String
>
externalUserIds
);
void
cleanNoExsitFriendNew
(
String
wxEnterpriseId
,
String
staffId
,
List
<
String
>
externalUserIds
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/MemberUnionidRelatedApiServiceImpl.java
View file @
a4650ccb
...
@@ -190,6 +190,20 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -190,6 +190,20 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
String
changeType
=
qwFrientNoticeDTO
.
getChangeType
();
String
changeType
=
qwFrientNoticeDTO
.
getChangeType
();
//欧泊莱定制
//欧泊莱定制
if
(
"del_follow_user"
.
equals
(
changeType
))
{
if
(
"del_follow_user"
.
equals
(
changeType
))
{
delExternalByUser
(
wxUserId
,
memberUnionidRelatedDTO
);
return
;
}
log
.
info
(
"导购删除好友"
);
this
.
delMemberUnionidRelatedProcess
(
memberUnionidRelatedDTO
,
wxUserId
);
}
}
/**
* 会员删除导购
* @param wxUserId
* @param memberUnionidRelatedDTO
*/
private
void
delExternalByUser
(
String
wxUserId
,
MemberUnionidRelatedDTO
memberUnionidRelatedDTO
)
{
log
.
info
(
"会员删除导购"
);
log
.
info
(
"会员删除导购"
);
String
corpId
=
memberUnionidRelatedDTO
.
getCorpid
();
String
corpId
=
memberUnionidRelatedDTO
.
getCorpid
();
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
,
null
);
TabHaobanWxApplication
tabHaobanWxApplication
=
wxApplicationMapper
.
selectByCorpId
(
corpId
,
null
);
...
@@ -201,7 +215,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -201,7 +215,7 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
memberUnionidRelatedDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
memberUnionidRelatedDTO
.
setWxEnterpriseId
(
wxEnterpriseId
);
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
TabHaobanStaff
staff
=
this
.
staffMapper
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
staff
==
null
)
{
if
(
staff
==
null
)
{
log
.
error
(
"员工不存在:{}"
,
wxUserId
);
log
.
error
(
"员工不存在:{}"
,
wxUserId
);
return
;
return
;
}
}
String
staffId
=
staff
.
getStaffId
();
String
staffId
=
staff
.
getStaffId
();
...
@@ -225,12 +239,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
...
@@ -225,12 +239,8 @@ public class MemberUnionidRelatedApiServiceImpl implements MemberUnionidRelatedA
wxUserAddLogQDTO
.
setClerkId
(
related
.
getClerkId
());
wxUserAddLogQDTO
.
setClerkId
(
related
.
getClerkId
());
wxUserAddLogQDTO
.
setDelClerkFlag
(
true
);
wxUserAddLogQDTO
.
setDelClerkFlag
(
true
);
wxUserAddLogService
.
save
(
wxUserAddLogQDTO
);
wxUserAddLogService
.
save
(
wxUserAddLogQDTO
);
addDelFriendEvent
(
related
.
getUnionid
(),
related
.
getClerkId
(),
wxEnterpriseId
,
enterpriseId
,
related
.
getMemberId
(),
related
.
getStoreId
(),
0
);
addDelFriendEvent
(
related
.
getUnionid
(),
related
.
getClerkId
(),
wxEnterpriseId
,
enterpriseId
,
related
.
getMemberId
(),
related
.
getStoreId
(),
0
);
return
;
}
log
.
info
(
"导购删除好友"
);
this
.
delMemberUnionidRelatedProcess
(
memberUnionidRelatedDTO
,
wxUserId
);
}
}
}
@Override
@Override
...
...
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