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
49b6849e
Commit
49b6849e
authored
Apr 25, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ferture/四月迭代需求' into 'master'
换门店后,查询主门店 See merge request
!1206
parents
9ac16bb8
bf4fb7e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+6
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
49b6849e
...
@@ -158,6 +158,7 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -158,6 +158,7 @@ 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
)
;
...
@@ -206,6 +207,11 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -206,6 +207,11 @@ 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
)
;
...
...
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