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
2688fbc0
Commit
2688fbc0
authored
Apr 25, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
bf4fb7e2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+1
-6
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
2688fbc0
...
@@ -133,7 +133,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -133,7 +133,6 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
String
storeId
=
clerkRelation
.
getStoreId
()
;
String
storeId
=
clerkRelation
.
getStoreId
()
;
boolean
needFlush
=
false
;
boolean
needFlush
=
false
;
boolean
delFlag
=
true
;
boolean
delFlag
=
true
;
boolean
newClerkIdFlag
=
StringUtils
.
isNotEmpty
(
newClerkId
)
;
if
(
StringUtils
.
isEmpty
(
newClerkId
))
{
if
(
StringUtils
.
isEmpty
(
newClerkId
))
{
// 成员关联的门店
// 成员关联的门店
List
<
StaffClerkRelationDTO
>
relationList
=
this
.
listByStaffId
(
wxEnterpriseId
,
staffId
)
;
List
<
StaffClerkRelationDTO
>
relationList
=
this
.
listByStaffId
(
wxEnterpriseId
,
staffId
)
;
...
@@ -182,11 +181,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -182,11 +181,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
if
(
delFlag
)
{
if
(
delFlag
)
{
this
.
mapper
.
changeStatusByClerkId
(
oldClerkId
,
0
);
this
.
mapper
.
changeStatusByClerkId
(
oldClerkId
,
0
);
}
}
if
(
newClerkIdFlag
)
{
logger
.
info
(
"换门店后,查询主门店,newClerkId={}"
,
newClerkId
);
// 设置主门店
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
staffId
,
wxEnterpriseId
,
null
)
;
}
if
(
StringUtils
.
isNotBlank
(
newClerkId
))
{
if
(
StringUtils
.
isNotBlank
(
newClerkId
))
{
List
<
String
>
memberIdList
=
this
.
externalClerkRelatedMapper
.
listByClerkId
(
staffId
,
oldClerkId
)
;
List
<
String
>
memberIdList
=
this
.
externalClerkRelatedMapper
.
listByClerkId
(
staffId
,
oldClerkId
)
;
this
.
externalClerkRelatedService
.
updateClerkInfo
(
staffId
,
oldClerkId
,
newClerkId
)
;
this
.
externalClerkRelatedService
.
updateClerkInfo
(
staffId
,
oldClerkId
,
newClerkId
)
;
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
2688fbc0
...
@@ -556,6 +556,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
...
@@ -556,6 +556,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
logger
.
info
(
"绑定结果正常:{},{}"
,
JSONObject
.
toJSONString
(
response
),
oldRelationDTO
.
getClerkId
());
logger
.
info
(
"绑定结果正常:{},{}"
,
JSONObject
.
toJSONString
(
response
),
oldRelationDTO
.
getClerkId
());
if
(
response
==
null
)
{
if
(
response
==
null
)
{
this
.
staffClerkRelationService
.
insert
(
oldRelationDTO
);
this
.
staffClerkRelationService
.
insert
(
oldRelationDTO
);
logger
.
info
(
"换门店后,查询主门店,newClerkId={}"
,
oldRelationDTO
.
getStaffId
());
// 设置主门店
this
.
clerkMainStoreRelatedService
.
getMainStoreByStaffId
(
oldRelationDTO
.
getStaffId
(),
oldRelationDTO
.
getWxEnterpriseId
(),
null
)
;
}
}
/*} else {
/*} else {
String oldClerkId = oldRelationDTO.getClerkId();
String oldClerkId = 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