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
2d9b5d26
Commit
2d9b5d26
authored
Nov 16, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
超管
parent
d3d757ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+15
-14
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
2d9b5d26
...
...
@@ -961,26 +961,27 @@ public class StaffApiServiceImpl implements StaffApiService {
}
if
(
storeIds
.
contains
(
"-1"
))
{
logger
.
info
(
"该导购为所有门店,clerkId={}"
,
clerkId
);
String
storeWidgetId
=
this
.
powerService
.
getStoreWidgetId
(
new
Date
(),
clerkId
);
int
storeCount
=
0
;
String
storeId
=
null
;
if
(
null
!=
storeWidgetId
)
{
Page
<
Object
>
pageParam
=
new
Page
<
Object
>();
pageParam
.
setCurrentPage
(
1
);
pageParam
.
setPageSize
(
1
);
Page
<
StoreDTO
>
page
=
new
Page
<>()
;
if
(
clerkType
==
2
)
{
page
=
storeWidgetService
.
getStoreWidgetStore
(
storeWidgetId
,
null
,
clerkDTO
.
getEnterpriseId
(),
pageParam
,
null
,
null
);
}
else
if
(
clerkType
==
3
)
{
StoreSearchDTO
searchDTO
=
new
StoreSearchDTO
()
;
searchDTO
.
setEnterpriseId
(
clerkDTO
.
getEnterpriseId
());
page
=
this
.
storeService
.
storeListPage
(
pageParam
,
searchDTO
)
;
Page
<
Object
>
pageParam
=
new
Page
<
Object
>();
pageParam
.
setCurrentPage
(
1
);
pageParam
.
setPageSize
(
1
);
if
(
clerkType
==
2
)
{
String
storeWidgetId
=
this
.
powerService
.
getStoreWidgetId
(
new
Date
(),
clerkId
);
if
(
null
!=
storeWidgetId
)
{
Page
<
StoreDTO
>
page
=
storeWidgetService
.
getStoreWidgetStore
(
storeWidgetId
,
null
,
clerkDTO
.
getEnterpriseId
(),
pageParam
,
null
,
null
);
storeId
=
page
.
getResult
().
get
(
0
).
getStoreId
();
storeCount
=
page
.
getTotalCount
();
}
}
else
if
(
clerkType
==
3
)
{
StoreSearchDTO
searchDTO
=
new
StoreSearchDTO
()
;
searchDTO
.
setEnterpriseId
(
clerkDTO
.
getEnterpriseId
());
Page
<
StoreDTO
>
page
=
this
.
storeService
.
storeListPage
(
pageParam
,
searchDTO
)
;
storeId
=
page
.
getResult
().
get
(
0
).
getStoreId
();
storeCount
=
page
.
getTotalCount
();
storeRoleDTO
.
setStoreId
(
storeId
);
storeRoleDTO
.
setStoreCount
(
storeCount
);
}
storeRoleDTO
.
setStoreId
(
storeId
);
storeRoleDTO
.
setStoreCount
(
storeCount
);
return
storeRoleDTO
;
}
int
size
=
storeIds
.
size
();
...
...
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