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
fdabebcb
Commit
fdabebcb
authored
Nov 23, 2020
by
qwmqiuwenmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d7788f65
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
FriendSyncOperation.java
...m/gic/haoban/manage/service/task/FriendSyncOperation.java
+4
-0
SelfFriendSyncOperation.java
...c/haoban/manage/service/task/SelfFriendSyncOperation.java
+5
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/FriendSyncOperation.java
View file @
fdabebcb
...
...
@@ -62,21 +62,25 @@ public class FriendSyncOperation implements BaseSyncOperation {
StaffDTO
staff
=
staffApiService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
staff
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"成员不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
ClerkMainStoreRelatedDTO
mainStore
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staff
.
getStaffId
());
if
(
mainStore
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"主门店不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getOneBindByStoreId
(
staff
.
getStaffId
(),
mainStore
.
getStoreId
());
if
(
staffClerkRelationDTO
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"未绑定导购"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
ExternalUserDTO
pojo
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserId
);
if
(
pojo
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"好友不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
pojo
.
setEnterpriseId
(
staffClerkRelationDTO
.
getEnterpriseId
());
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/SelfFriendSyncOperation.java
View file @
fdabebcb
...
...
@@ -73,16 +73,19 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
StaffDTO
staff
=
staffApiService
.
selectByUserIdAndEnterpriseId
(
wxUserId
,
wxEnterpriseId
);
if
(
staff
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"成员不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
ClerkMainStoreRelatedDTO
mainStore
=
clerkMainStoreRelatedApiService
.
getWxEnterpriseIdAndStaffId
(
wxEnterpriseId
,
staff
.
getStaffId
());
if
(
mainStore
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"主门店不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
StaffClerkRelationDTO
staffClerkRelationDTO
=
staffClerkRelationService
.
getOneBindByStoreId
(
staff
.
getStaffId
(),
mainStore
.
getStoreId
());
if
(
staffClerkRelationDTO
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"未绑定导购"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
ExternalUserDTO
pojo
=
memberUnionidRelatedApiService
.
getCorpSelfExternalUseridInfo
(
wxEnterpriseId
,
wxUserId
,
externalUserId
);
...
...
@@ -98,6 +101,7 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
ClerkDTO
clerk
=
clerkService
.
getClerkByClerkCode
(
staffClerkRelationDTO
.
getEnterpriseId
(),
clerkCode
);
if
(
clerk
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"导购不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
String
qrcodeParam
=
clerk
.
getQrcodeParam
();
...
...
@@ -112,6 +116,7 @@ public class SelfFriendSyncOperation implements BaseSyncOperation{
}
if
(
member
==
null
){
preDealService
.
updateStatusByDataId
(
taskId
,
externalUserId
,
PreDealStatusEnum
.
exception
.
getVal
(),
"会员不存在"
);
checkStaffTask
(
taskId
,
wxUserId
);
return
;
}
try
{
...
...
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