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
809838a8
Commit
809838a8
authored
Jun 01, 2022
by
墨竹
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:门店权限所有门店返回-1
parent
6be234b3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
131 additions
and
24 deletions
+131
-24
StaffApiService.java
...va/com/gic/haoban/manage/api/service/StaffApiService.java
+13
-1
TabHaobanStoreRelationMapper.java
...nage/service/dao/mapper/TabHaobanStoreRelationMapper.java
+15
-0
StoreRangeService.java
.../gic/haoban/manage/service/service/StoreRangeService.java
+11
-0
StoreRangeServiceImpl.java
...an/manage/service/service/impl/StoreRangeServiceImpl.java
+5
-0
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+78
-23
TabHaobanStoreRelationMapper.xml
...rc/main/resources/mapper/TabHaobanStoreRelationMapper.xml
+9
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffApiService.java
View file @
809838a8
...
@@ -250,7 +250,7 @@ public interface StaffApiService {
...
@@ -250,7 +250,7 @@ public interface StaffApiService {
/**
/**
* 导购gic门店和好办企业门店交集
* 导购gic门店和好办企业门店交集
*
超管返回所有门店
*
所有门店返回所有门店列表
*
*
* @param clerkId 职员id
* @param clerkId 职员id
* @param wxEnterpriseId wx企业标识
* @param wxEnterpriseId wx企业标识
...
@@ -260,6 +260,18 @@ public interface StaffApiService {
...
@@ -260,6 +260,18 @@ public interface StaffApiService {
*/
*/
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
List
<
String
>
getHaoBanStoreRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
/**
* 导购gic门店和好办企业门店交集
* 所有门店返回 -1
*
* @param clerkId 职员id
* @param wxEnterpriseId wx企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 11:04:40
*/
List
<
String
>
getHaoBanStoreIdsRolesByClerkId
(
String
clerkId
,
String
wxEnterpriseId
);
/**
/**
* 门店筛选器id和好办企业门店交集
* 门店筛选器id和好办企业门店交集
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStoreRelationMapper.java
View file @
809838a8
...
@@ -104,4 +104,18 @@ public interface TabHaobanStoreRelationMapper {
...
@@ -104,4 +104,18 @@ public interface TabHaobanStoreRelationMapper {
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
);
@Param
(
"enterpriseId"
)
String
enterpriseId
);
/**
* 查询所有门店分组id
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 10:34:17
*/
List
<
String
>
listStoreGroupIdByWxEnterpriseId
(
@Param
(
"wxEnterpriseId"
)
String
wxEnterpriseId
,
@Param
(
"enterpriseId"
)
String
enterpriseId
);
}
}
\ No newline at end of file
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StoreRangeService.java
View file @
809838a8
...
@@ -118,4 +118,15 @@ public interface StoreRangeService {
...
@@ -118,4 +118,15 @@ public interface StoreRangeService {
*/
*/
boolean
isFlagByStoreId
(
String
storeId
,
String
wxEnterpriseId
,
String
enterpriseId
);
boolean
isFlagByStoreId
(
String
storeId
,
String
wxEnterpriseId
,
String
enterpriseId
);
/**
* 查询所有门店分组id
*
* @param wxEnterpriseId wx企业标识
* @param enterpriseId 企业标识
* @return {@link List }<{@link String }>
* @author mozhu
* @date 2022-06-01 10:34:17
*/
List
<
String
>
listStoreGroupIdByWxEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StoreRangeServiceImpl.java
View file @
809838a8
...
@@ -272,4 +272,9 @@ public class StoreRangeServiceImpl implements StoreRangeService {
...
@@ -272,4 +272,9 @@ public class StoreRangeServiceImpl implements StoreRangeService {
List
<
String
>
storeIds
=
tabHaobanStoreRelationMapper
.
listStoreIdByStoreIdWxEnterpriseId
(
storeId
,
wxEnterpriseId
,
enterpriseId
);
List
<
String
>
storeIds
=
tabHaobanStoreRelationMapper
.
listStoreIdByStoreIdWxEnterpriseId
(
storeId
,
wxEnterpriseId
,
enterpriseId
);
return
CollectionUtils
.
isNotEmpty
(
storeIds
);
return
CollectionUtils
.
isNotEmpty
(
storeIds
);
}
}
@Override
public
List
<
String
>
listStoreGroupIdByWxEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
return
tabHaobanStoreRelationMapper
.
listStoreGroupIdByWxEnterpriseId
(
wxEnterpriseId
,
enterpriseId
);
}
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
809838a8
This diff is collapsed.
Click to expand it.
haoban-manage3-service/src/main/resources/mapper/TabHaobanStoreRelationMapper.xml
View file @
809838a8
...
@@ -223,4 +223,12 @@
...
@@ -223,4 +223,12 @@
and store_id = #{storeId}
and store_id = #{storeId}
and status_flag = 1
and status_flag = 1
</select>
</select>
<select
id=
"listStoreGroupIdByWxEnterpriseId"
resultType=
"String"
>
select store_group_id
from tab_haoban_store_relation
where wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
and status_flag = 1 group by store_group_id
</select>
</mapper>
</mapper>
\ No newline at end of file
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