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
7f6d8705
Commit
7f6d8705
authored
Nov 06, 2024
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
兼容店长和店员登陆
parent
e4c2176b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+17
-1
WxStaffController.java
...m/gic/haoban/manage/web/controller/WxStaffController.java
+0
-10
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
7f6d8705
...
...
@@ -13,6 +13,7 @@ import com.gic.clerk.api.service.PowerService;
import
com.gic.commons.util.DateUtil
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.util.ImageUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.dto.*
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.enterprise.api.service.StoreGroupService
;
...
...
@@ -913,6 +914,21 @@ public class StaffApiServiceImpl implements StaffApiService {
private
List
<
String
>
getHaobanStoreIdsRolesByClerkIdAndStoreStatusCommon
(
String
clerkId
,
String
wxEnterpriseId
,
List
<
String
>
storeStatusList
,
boolean
isMustReturnStoreIdWhenSuperAdmin
,
Boolean
addUnassignedStore
)
{
//兼容店长和店员登陆
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
.
getClerkType
()
==
null
||
clerkDTO
.
getClerkType
()
==
0
||
clerkDTO
.
getClerkType
()
==
1
)
{
StoreDTO
storeDTO
=
storeService
.
getStore
(
clerkDTO
.
getStoreId
());
if
(
storeDTO
!=
null
)
{
List
<
String
>
storeList
=
new
ArrayList
<>();
storeList
.
add
(
storeDTO
.
getStoreId
());
return
storeList
;
}
else
{
return
Collections
.
singletonList
(
"no_store"
);
}
}
}
if
(
addUnassignedStore
==
null
)
{
addUnassignedStore
=
false
;
}
...
...
@@ -935,7 +951,7 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(!
needQueryStore
)
{
return
storeIds
;
}
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
()
;
storeSearchDTO
.
setEnterpriseId
(
clerkDTO
.
getEnterpriseId
());
if
(
isSuperAdminStore
)
{
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/WxStaffController.java
View file @
7f6d8705
...
...
@@ -1592,16 +1592,6 @@ public class WxStaffController extends WebBaseController {
// storeRoleVO.setStoreCount(storeRoleDTO.getStoreCount());
// storeRoleVO.setStoreDTO(storeService.getStore(storeRoleDTO.getStoreId()));
StoreRoleVO
storeRoleVO
=
new
StoreRoleVO
();
//兼容店长和店员登陆
ClerkDTO
clerkDTO
=
clerkService
.
getClerkByClerkId
(
clerkId
);
if
(
clerkDTO
!=
null
)
{
if
(
clerkDTO
.
getClerkType
()
==
null
||
clerkDTO
.
getClerkType
()
==
0
||
clerkDTO
.
getClerkType
()
==
1
)
{
StoreDTO
storeDTO
=
storeService
.
getStore
(
clerkDTO
.
getStoreId
());
storeRoleVO
.
setStoreCount
(
storeDTO
==
null
?
0
:
1
);
storeRoleVO
.
setStoreDTO
(
storeDTO
);
return
RestResponse
.
successResult
(
storeRoleVO
);
}
}
List
<
String
>
list
=
staffApiService
.
getNotEmptyHaobanStoreIdsRolesByClerkIdAndStoreStatus
(
clerkId
,
wxEnterpriseId
,
StoreStatusFilterUtils
.
getStoreStatusList
(
storeStatusFilter
),
null
);
storeRoleVO
.
setStoreCount
(
list
.
contains
(
"no_store"
)
?
0
:
list
.
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