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
c7c94b82
Commit
c7c94b82
authored
Oct 17, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
037add80
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
11 deletions
+26
-11
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+26
-11
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
c7c94b82
...
...
@@ -31,6 +31,7 @@ import com.gic.haoban.manage.service.service.*;
import
com.gic.haoban.manage.service.service.hm.HmQrcodeService
;
import
com.gic.haoban.manage.service.task.RouterConstant
;
import
com.gic.haoban.task.api.dto.MqMessageQo
;
import
com.gic.redis.data.util.RedisUtil
;
import
com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactDTO
;
import
com.gic.wechat.api.dto.qywx.welcome.QywxExternalcontactResultDTO
;
import
com.gic.wechat.api.service.qywx.QywxUserApiService
;
...
...
@@ -524,18 +525,32 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
}
}
}
// 导购门店转移
private
void
moveOrAddClerk
(
ClerkSyncQDTO
clerkSyncQDTO
,
StaffClerkRelationDTO
oldRelationDTO
)
{
//正常的时候
String
oldClerkId
=
oldRelationDTO
.
getClerkId
();
this
.
staffClerkRelationService
.
delBind
(
oldClerkId
,
"-1"
,
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
(),
clerkSyncQDTO
.
getClerkId
());
oldRelationDTO
.
setClerkId
(
clerkSyncQDTO
.
getClerkId
());
oldRelationDTO
.
setStoreId
(
clerkSyncQDTO
.
getStoreId
());
ServiceResponse
response
=
this
.
bindCheck
(
oldRelationDTO
,
"-1"
,
ChannelCodeEnum
.
SYNC_BIND
.
getCode
())
;
// this.bindStaffClerk(oldRelationDTO, "-1", ChannelCodeEnum.SYNC_BIND.getCode());
logger
.
info
(
"绑定结果正常:{},{}"
,
JSONObject
.
toJSONString
(
response
),
oldRelationDTO
.
getClerkId
());
if
(
response
==
null
)
{
this
.
staffClerkRelationService
.
insert
(
oldRelationDTO
)
;
boolean
flag
=
false
;
if
(
null
!=
RedisUtil
.
getCache
(
"clerkMoveFlag2022"
))
{
flag
=
true
;
}
if
(
flag
)
{
String
oldClerkId
=
oldRelationDTO
.
getClerkId
();
this
.
staffClerkRelationService
.
delBind
(
oldClerkId
,
"-1"
,
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
(),
clerkSyncQDTO
.
getClerkId
());
// 设置新的ID
oldRelationDTO
.
setClerkId
(
clerkSyncQDTO
.
getClerkId
());
oldRelationDTO
.
setStoreId
(
clerkSyncQDTO
.
getStoreId
());
ServiceResponse
response
=
this
.
bindCheck
(
oldRelationDTO
,
"-1"
,
ChannelCodeEnum
.
SYNC_BIND
.
getCode
())
;
logger
.
info
(
"绑定结果正常:{},{}"
,
JSONObject
.
toJSONString
(
response
),
oldRelationDTO
.
getClerkId
());
if
(
response
==
null
)
{
this
.
staffClerkRelationService
.
insert
(
oldRelationDTO
)
;
}
}
else
{
String
oldClerkId
=
oldRelationDTO
.
getClerkId
();
this
.
staffClerkRelationService
.
delBind
(
oldClerkId
,
"-1"
,
ChannelCodeEnum
.
SYNC_UNBIND
.
getCode
(),
null
);
// 设置新的ID
oldRelationDTO
.
setClerkId
(
clerkSyncQDTO
.
getClerkId
());
oldRelationDTO
.
setStoreId
(
clerkSyncQDTO
.
getStoreId
());
ServiceResponse
resp
=
this
.
bindStaffClerk
(
oldRelationDTO
,
"-1"
,
ChannelCodeEnum
.
SYNC_BIND
.
getCode
());
logger
.
info
(
"绑定结果正常:{},{}"
,
JSONObject
.
toJSONString
(
resp
),
oldRelationDTO
.
getClerkId
());
}
}
...
...
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