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
e2f0daf5
Commit
e2f0daf5
authored
Nov 24, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'xgh_内容中台' into 'developer'
/ See merge request
!470
parents
b2a865d4
68da3340
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+17
-19
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
e2f0daf5
...
@@ -1675,6 +1675,8 @@ public class WxStaffController extends WebBaseController {
...
@@ -1675,6 +1675,8 @@ public class WxStaffController extends WebBaseController {
}
}
@RequestMapping
(
"/list-clerk-store-page"
)
@RequestMapping
(
"/list-clerk-store-page"
)
public
RestResponse
<
Object
>
listClerkStorePage
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
@RequestParam
(
defaultValue
=
"20"
)
int
pageSize
,
@RequestParam
(
defaultValue
=
"1"
)
int
currentPage
,
String
storeSearchParams
)
{
public
RestResponse
<
Object
>
listClerkStorePage
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
@RequestParam
(
defaultValue
=
"20"
)
int
pageSize
,
@RequestParam
(
defaultValue
=
"1"
)
int
currentPage
,
String
storeSearchParams
)
{
// 如果有权限控制,进行管辖门店过0滤
// 如果有权限控制,进行管辖门店过0滤
...
@@ -1684,15 +1686,7 @@ public class WxStaffController extends WebBaseController {
...
@@ -1684,15 +1686,7 @@ public class WxStaffController extends WebBaseController {
}
}
Page
page
=
this
.
page
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
20
,
1
,
storeSearchParams
,
authStoreIdList
)
;
Page
page
=
this
.
page
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
20
,
1
,
storeSearchParams
,
authStoreIdList
)
;
List
<
StoreDTO
>
storeList
=
(
List
<
StoreDTO
>)
page
.
getResult
();
List
<
StoreDTO
>
storeList
=
(
List
<
StoreDTO
>)
page
.
getResult
();
List
<
StoreListVO
>
retList
=
new
ArrayList
<
StoreListVO
>();
List
<
StoreListVO
>
retList
=
this
.
toList
(
storeList
)
;
StoreListVO
vo
=
null
;
for
(
StoreDTO
dto
:
storeList
)
{
vo
=
new
StoreListVO
();
vo
.
setStoreId
(
dto
.
getStoreId
());
vo
.
setStoreName
(
dto
.
getStoreName
());
vo
.
setStoreCode
(
dto
.
getStoreCode
());
retList
.
add
(
vo
);
}
Page
<
StoreListVO
>
retPage
=
new
Page
<>();
Page
<
StoreListVO
>
retPage
=
new
Page
<>();
retPage
.
setResult
(
retList
);
retPage
.
setResult
(
retList
);
retPage
.
setTotalCount
(
page
.
getTotalCount
());
retPage
.
setTotalCount
(
page
.
getTotalCount
());
...
@@ -1725,6 +1719,19 @@ public class WxStaffController extends WebBaseController {
...
@@ -1725,6 +1719,19 @@ public class WxStaffController extends WebBaseController {
return
page
;
return
page
;
}
}
private
List
<
StoreListVO
>
toList
(
List
<
StoreDTO
>
storeList
){
List
<
StoreListVO
>
retList
=
new
ArrayList
<
StoreListVO
>();
StoreListVO
vo
=
null
;
for
(
StoreDTO
dto
:
storeList
)
{
vo
=
new
StoreListVO
();
vo
.
setStoreId
(
dto
.
getStoreId
());
vo
.
setStoreName
(
dto
.
getStoreName
());
vo
.
setStoreCode
(
dto
.
getStoreCode
());
retList
.
add
(
vo
);
}
return
retList
;
}
//区经门店查询
//区经门店查询
@RequestMapping
(
"search-clerk-store"
)
@RequestMapping
(
"search-clerk-store"
)
public
RestResponse
<
Object
>
listClerkStoreByParams
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
String
storeSearchParams
)
{
public
RestResponse
<
Object
>
listClerkStoreByParams
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
clerkId
,
String
storeSearchParams
)
{
...
@@ -1738,16 +1745,7 @@ public class WxStaffController extends WebBaseController {
...
@@ -1738,16 +1745,7 @@ public class WxStaffController extends WebBaseController {
}
}
Page
page
=
this
.
page
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
20
,
1
,
storeSearchParams
,
authStoreIdList
)
;
Page
page
=
this
.
page
(
wxEnterpriseId
,
enterpriseId
,
clerkId
,
20
,
1
,
storeSearchParams
,
authStoreIdList
)
;
List
<
StoreDTO
>
storeList
=
(
List
<
StoreDTO
>)
page
.
getResult
();
List
<
StoreDTO
>
storeList
=
(
List
<
StoreDTO
>)
page
.
getResult
();
List
<
StoreListVO
>
retList
=
new
ArrayList
<
StoreListVO
>();
return
RestResponse
.
successResult
(
toList
(
storeList
));
StoreListVO
vo
=
null
;
for
(
StoreDTO
dto
:
storeList
)
{
vo
=
new
StoreListVO
();
vo
.
setStoreId
(
dto
.
getStoreId
());
vo
.
setStoreName
(
dto
.
getStoreName
());
vo
.
setStoreCode
(
dto
.
getStoreCode
());
retList
.
add
(
vo
);
}
return
RestResponse
.
successResult
(
retList
);
}
}
/**
/**
...
...
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