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
1957b8ea
Commit
1957b8ea
authored
Apr 23, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤非上线门店
parent
9dd5cd44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
4 deletions
+24
-4
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+23
-3
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
1957b8ea
...
@@ -501,12 +501,22 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -501,12 +501,22 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
}
List
<
StaffClerkRelationDTO
>
retList
=
new
ArrayList
<>()
;
List
<
StaffClerkRelationDTO
>
retList
=
new
ArrayList
<>()
;
for
(
StaffClerkRelationDTO
item
:
list
)
{
for
(
StaffClerkRelationDTO
item
:
list
)
{
boolean
delFlag
=
false
;
String
clerkId
=
item
.
getClerkId
()
;
String
clerkId
=
item
.
getClerkId
()
;
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
if
(
null
!=
clerk
&&
clerk
.
getStatus
()
==
1
)
{
if
(
null
==
clerk
||
clerk
.
getStatus
()
!=
1
)
{
retList
.
add
(
item
)
;
delFlag
=
true
;
}
else
{
}
if
(!
delFlag
&&
null
!=
clerk
&&
clerk
.
getClerkType
()<
2
&&
StringUtils
.
isNotEmpty
(
clerk
.
getStoreId
()))
{
StoreDTO
store
=
this
.
storeService
.
getStore
(
clerk
.
getStoreId
())
;
if
(
null
==
store
||
store
.
getStatus
()
!=
2
)
{
delFlag
=
true
;
}
}
if
(
delFlag
)
{
this
.
mapper
.
delByClerkId
(
clerkId
);
this
.
mapper
.
delByClerkId
(
clerkId
);
}
else
{
retList
.
add
(
item
)
;
}
}
}
}
return
retList
;
return
retList
;
...
@@ -518,7 +528,17 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
...
@@ -518,7 +528,17 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
}
}
String
clerkId
=
dto
.
getClerkId
()
;
String
clerkId
=
dto
.
getClerkId
()
;
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
ClerkDTO
clerk
=
this
.
clerkService
.
getclerkById
(
clerkId
)
;
boolean
delFlag
=
false
;
if
(
null
==
clerk
||
clerk
.
getStatus
()
!=
1
)
{
if
(
null
==
clerk
||
clerk
.
getStatus
()
!=
1
)
{
delFlag
=
true
;
}
if
(!
delFlag
&&
null
!=
clerk
&&
clerk
.
getClerkType
()
<
2
&&
StringUtils
.
isNotEmpty
(
clerk
.
getStoreId
()))
{
StoreDTO
store
=
this
.
storeService
.
getStore
(
clerk
.
getStoreId
())
;
if
(
null
==
store
||
store
.
getStatus
()
!=
2
)
{
delFlag
=
true
;
}
}
if
(
delFlag
)
{
this
.
mapper
.
delByClerkId
(
clerkId
);
this
.
mapper
.
delByClerkId
(
clerkId
);
dto
=
null
;
dto
=
null
;
}
}
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
1957b8ea
...
@@ -1481,7 +1481,7 @@ public class WxStaffController extends WebBaseController {
...
@@ -1481,7 +1481,7 @@ public class WxStaffController extends WebBaseController {
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
bindRelationList
)
{
for
(
StaffClerkRelationDTO
staffClerkRelationDTO
:
bindRelationList
)
{
String
storeId
=
staffClerkRelationDTO
.
getStoreId
();
String
storeId
=
staffClerkRelationDTO
.
getStoreId
();
StoreDTO
store
=
storeService
.
getStore
(
storeId
);
StoreDTO
store
=
storeService
.
getStore
(
storeId
);
if
(
store
==
null
)
{
if
(
store
==
null
||
store
.
getStatus
()
!=
2
)
{
continue
;
continue
;
}
}
String
enterpriseId
=
store
.
getEnterpriseId
();
String
enterpriseId
=
store
.
getEnterpriseId
();
...
...
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