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
5f59706c
Commit
5f59706c
authored
Nov 02, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
只有开启权限的商户才会查询区经门店列表
parent
1696d416
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+1
-5
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+1
-7
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
5f59706c
...
...
@@ -905,7 +905,7 @@ public class StaffApiServiceImpl implements StaffApiService {
return
storeRoleDTO
;
}
if
(
storeIds
.
contains
(
"-1"
))
{
logger
.
info
(
"该导购为
超管
,clerkId={}"
,
clerkId
);
logger
.
info
(
"该导购为
所有门店
,clerkId={}"
,
clerkId
);
String
storeWidgetId
=
this
.
powerService
.
getStoreWidgetId
(
new
Date
(),
clerkId
);
int
storeCount
=
0
;
String
storeId
=
null
;
...
...
@@ -916,10 +916,6 @@ public class StaffApiServiceImpl implements StaffApiService {
Page
<
StoreDTO
>
page
=
storeWidgetService
.
getStoreWidgetStore
(
storeWidgetId
,
null
,
clerkDTO
.
getEnterpriseId
(),
pageParam
,
clerkId
,
null
);
storeId
=
page
.
getResult
().
get
(
0
).
getStoreId
();
storeCount
=
page
.
getTotalCount
();
}
else
{
com
.
gic
.
api
.
base
.
commons
.
ServiceResponse
<
List
<
String
>>
storeResp
=
this
.
storeService
.
queryStoreIdByEnterprise
(
clerkDTO
.
getEnterpriseId
(),
null
)
;
storeCount
=
storeResp
.
getResult
().
size
();
storeId
=
storeResp
.
getResult
().
get
(
0
);
}
storeRoleDTO
.
setStoreId
(
storeId
);
storeRoleDTO
.
setStoreCount
(
storeCount
);
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
5f59706c
...
...
@@ -1624,8 +1624,8 @@ public class WxStaffController extends WebBaseController {
List
<
StoreListVO
>
voList
=
new
ArrayList
<>();
int
totalCount
=
0
;
List
<
StoreDTO
>
storeDTOList
=
null
;
if
(
storeIdList
.
get
(
0
).
contains
(
"-1"
))
{
String
storeWidgetId
=
this
.
powerService
.
getStoreWidgetId
(
new
Date
(),
clerkId
);
if
(
storeIdList
.
get
(
0
).
contains
(
"-1"
)
&&
StringUtils
.
isNotBlank
(
storeWidgetId
))
{
logger
.
info
(
"权限-所有门店storeWidgetId={}"
,
storeWidgetId
);
Page
<
Object
>
pageParam
=
new
Page
<
Object
>();
pageParam
.
setCurrentPage
(
currentPage
);
...
...
@@ -1635,12 +1635,6 @@ public class WxStaffController extends WebBaseController {
storeDTOList
=
page
.
getResult
();
totalCount
=
page
.
getTotalCount
();
}
}
else
if
(
storeIdList
.
get
(
0
).
contains
(
"-1"
)
&&
StringUtils
.
isBlank
(
storeWidgetId
))
{
// 未开启分权的商户
ServiceResponse
<
List
<
String
>>
storeResp
=
this
.
storeService
.
queryStoreIdByEnterprise
(
enterpriseId
,
null
)
;
if
(
storeResp
.
isSuccess
())
{
storeIdList
=
storeResp
.
getResult
()
;
}
}
else
{
totalCount
=
storeIdList
.
size
();
int
start
=
pageSize
*
(
currentPage
-
1
)
;
...
...
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