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
f7df5e6a
Commit
f7df5e6a
authored
May 31, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:根据企业id查询门店权限
parent
f752d0b8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
17 deletions
+14
-17
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+12
-10
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+2
-7
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
f7df5e6a
...
@@ -15,7 +15,7 @@ public interface StaffApiService {
...
@@ -15,7 +15,7 @@ public interface StaffApiService {
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
List
<
StaffDTO
>
listByIds
(
List
<
String
>
staffIds
);
List
<
StaffDTO
>
listByWxUserId
(
String
wxUserId
,
String
wxEnterpriseId
);
List
<
StaffDTO
>
listByWxUserId
(
String
wxUserId
,
String
wxEnterpriseId
);
StaffDTO
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
StaffDTO
selectByNationcodeAndPhoneNumber
(
String
wxEnterpriseId
,
String
nationcode
,
String
phoneNumber
);
...
@@ -24,7 +24,7 @@ public interface StaffApiService {
...
@@ -24,7 +24,7 @@ public interface StaffApiService {
List
<
StaffDepartmentRelatedDTO
>
listStaffDepartmentByStaffId
(
String
staffId
);
List
<
StaffDepartmentRelatedDTO
>
listStaffDepartmentByStaffId
(
String
staffId
);
Page
<
StaffDTO
>
pageStaff
(
List
<
String
>
departmentId
,
Integer
activeFlag
,
Page
<
StaffDTO
>
pageStaff
(
List
<
String
>
departmentId
,
Integer
activeFlag
,
String
keyword
,
BasePageInfo
pageInfo
,
Integer
relationFlag
,
String
wxEnterpriseId
);
String
keyword
,
BasePageInfo
pageInfo
,
Integer
relationFlag
,
String
wxEnterpriseId
);
@Deprecated
@Deprecated
void
del
(
String
staffDepartmentStaffRelatedId
);
void
del
(
String
staffDepartmentStaffRelatedId
);
...
@@ -142,6 +142,7 @@ public interface StaffApiService {
...
@@ -142,6 +142,7 @@ public interface StaffApiService {
/**
/**
* 获取超管
* 获取超管
*
* @param wxEnterpriseId
* @param wxEnterpriseId
* @return
* @return
*/
*/
...
@@ -257,19 +258,20 @@ public interface StaffApiService {
...
@@ -257,19 +258,20 @@ public interface StaffApiService {
* @author mozhu
* @author mozhu
* @date 2022-05-25 15:37:24
* @date 2022-05-25 15:37:24
*/
*/
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
/**
/**
* 门店筛选器id和好办企业门店交集
* 门店筛选器id和好办企业门店交集
*
*
* @param storeWidgetId 存储部件id
* @param storeWidgetId 存储部件id
* @param enterpriseId 企业标识
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @return {@link List }<{@link String }>
* @author mozhu
* @author mozhu
* @date 2022-05-
09 16:34:56
* @date 2022-05-
31 09:35:42
*/
*/
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
enterpriseId
);
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
);
/**
/**
...
@@ -282,7 +284,7 @@ public interface StaffApiService {
...
@@ -282,7 +284,7 @@ public interface StaffApiService {
* @author mozhu
* @author mozhu
* @date 2022-05-18 14:19:11
* @date 2022-05-18 14:19:11
*/
*/
boolean
isFlagByStoreIdAndEnterpriseId
(
String
storeId
,
String
enterpriseId
,
String
wxEnterpriseId
);
boolean
isFlagByStoreIdAndEnterpriseId
(
String
storeId
,
String
enterpriseId
,
String
wxEnterpriseId
);
/**
/**
...
@@ -305,6 +307,6 @@ public interface StaffApiService {
...
@@ -305,6 +307,6 @@ public interface StaffApiService {
* @author mozhu
* @author mozhu
* @date 2022-05-30 11:46:08
* @date 2022-05-30 11:46:08
*/
*/
List
<
String
>
getHaoBanStoreRolesByEnterpriseId
(
String
enterpriseId
,
String
wxEnterpriseId
);
List
<
String
>
getHaoBanStoreRolesByEnterpriseId
(
String
enterpriseId
,
String
wxEnterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
f7df5e6a
...
@@ -1331,13 +1331,8 @@ public class StaffApiServiceImpl implements StaffApiService {
...
@@ -1331,13 +1331,8 @@ public class StaffApiServiceImpl implements StaffApiService {
}
}
@Override
@Override
public
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
enterpriseId
)
{
public
List
<
String
>
getHaoBanStoreRolesByStoreWidgetId
(
String
storeWidgetId
,
String
wxEnterpriseId
,
String
enterpriseId
)
{
TabHaobanWxEnterpriseRelated
enterpriseRelated
=
wxEnterpriseRelatedMapper
.
findOneByEnterpriseId
(
enterpriseId
);
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
,
enterpriseId
);
if
(
enterpriseRelated
==
null
)
{
//商户未关联好办
return
Collections
.
emptyList
();
}
List
<
String
>
enterpriseIdStoreIds
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
enterpriseRelated
.
getWxEnterpriseId
(),
enterpriseId
);
List
<
String
>
storeWidgetIdStoreIds
=
getStoreWidgetIdStoreIds
(
storeWidgetId
,
enterpriseId
);
List
<
String
>
storeWidgetIdStoreIds
=
getStoreWidgetIdStoreIds
(
storeWidgetId
,
enterpriseId
);
//取交集
//取交集
Sets
.
SetView
<
String
>
intersection
=
Sets
.
intersection
(
Sets
.
newHashSet
(
enterpriseIdStoreIds
),
Sets
.
newHashSet
(
storeWidgetIdStoreIds
));
Sets
.
SetView
<
String
>
intersection
=
Sets
.
intersection
(
Sets
.
newHashSet
(
enterpriseIdStoreIds
),
Sets
.
newHashSet
(
storeWidgetIdStoreIds
));
...
...
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