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
746c5f8e
Commit
746c5f8e
authored
Oct 28, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
95f0aa94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
11 deletions
+13
-11
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+13
-11
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
746c5f8e
...
...
@@ -1616,7 +1616,7 @@ public class WxStaffController extends WebBaseController {
// 区经门店列表
@RequestMapping
(
"/list-clerk-store"
)
public
RestResponse
<
Object
>
listClerkStore
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
String
searchParams
,
int
pageSize
,
int
currentPage
)
{
public
RestResponse
<
Object
>
listClerkStore
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
String
searchParams
,
@RequestParam
(
defaultValue
=
"20"
)
int
pageSize
,
@RequestParam
(
defaultValue
=
"1"
)
int
currentPage
)
{
List
<
StoreListVO
>
voList
=
new
ArrayList
<>();
List
<
String
>
storeIdList
=
this
.
staffApiService
.
getHaoBanStoreIdsRolesByClerkId
(
clerkId
,
wxEnterpriseId
)
;
int
totalCount
=
0
;
...
...
@@ -1624,7 +1624,7 @@ public class WxStaffController extends WebBaseController {
if
(
storeIdList
.
get
(
0
).
contains
(
"-1"
))
{
String
storeWidgetId
=
this
.
powerService
.
getStoreWidgetId
(
new
Date
(),
clerkId
);
logger
.
info
(
"权限-所有门店storeWidgetId={}"
,
storeWidgetId
);
Page
pageParam
=
new
Page
();
Page
<
Object
>
pageParam
=
new
Page
<
Object
>
();
pageParam
.
setCurrentPage
(
currentPage
);
pageParam
.
setPageSize
(
pageSize
);
Page
<
StoreDTO
>
page
=
storeWidgetService
.
getStoreWidgetStore
(
storeWidgetId
,
null
,
enterpriseId
,
pageParam
,
clerkId
,
null
);
...
...
@@ -1635,15 +1635,17 @@ public class WxStaffController extends WebBaseController {
}
else
{
totalCount
=
storeIdList
.
size
();
int
start
=
pageSize
*
(
currentPage
-
1
)
;
int
end
=
start
+
pageSize
;
if
(
end
>
totalCount
)
{
end
=
totalCount
;
}
List
<
String
>
subStoreIdList
=
storeIdList
.
subList
(
start
,
end
)
;
if
(
CollectionUtils
.
isNotEmpty
(
subStoreIdList
))
{
logger
.
info
(
"分页当前页storeid数={}"
,
subStoreIdList
.
size
());
String
[]
arr
=
new
String
[
subStoreIdList
.
size
()]
;
storeDTOList
=
this
.
storeService
.
getStores
(
subStoreIdList
.
toArray
(
arr
));
if
(
start
<
totalCount
)
{
int
end
=
start
+
pageSize
;
if
(
end
>
totalCount
)
{
end
=
totalCount
;
}
List
<
String
>
subStoreIdList
=
storeIdList
.
subList
(
start
,
end
)
;
if
(
CollectionUtils
.
isNotEmpty
(
subStoreIdList
))
{
logger
.
info
(
"分页当前页storeid数={}"
,
subStoreIdList
.
size
());
String
[]
arr
=
new
String
[
subStoreIdList
.
size
()]
;
storeDTOList
=
this
.
storeService
.
getStores
(
subStoreIdList
.
toArray
(
arr
));
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
storeDTOList
))
{
...
...
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