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
d5962516
Commit
d5962516
authored
Apr 19, 2021
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店权限范围
parent
01e58cde
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
53 additions
and
3 deletions
+53
-3
WxEnterpriseRelatedApiService.java
...ban/manage/api/service/WxEnterpriseRelatedApiService.java
+8
-0
TabHaobanStoreRelationMapper.java
...nage/service/dao/mapper/TabHaobanStoreRelationMapper.java
+10
-0
StoreRangeService.java
.../gic/haoban/manage/service/service/StoreRangeService.java
+9
-0
StoreRangeServiceImpl.java
...an/manage/service/service/impl/StoreRangeServiceImpl.java
+5
-0
WxEnterpriseRelatedApiServiceImpl.java
...e/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
+5
-1
TabHaobanStoreRelationMapper.xml
...rc/main/resources/mapper/TabHaobanStoreRelationMapper.xml
+12
-0
StaffController.java
...com/gic/haoban/manage/web/controller/StaffController.java
+2
-1
ClerkController.java
...com/gic/haoban/manage/web/controller/ClerkController.java
+2
-1
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/WxEnterpriseRelatedApiService.java
View file @
d5962516
...
...
@@ -82,4 +82,12 @@ public interface WxEnterpriseRelatedApiService {
*/
public
Page
<
BindStoreInfoDTO
>
pageBindStoreByEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
search
,
BasePageInfo
pageInfo
);
/**
* 查询绑定得门店id
*
* @param wxEnterpriseId
* @return
*/
public
List
<
String
>
listStoreIdByWxEnterpriseId
(
String
wxEnterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/dao/mapper/TabHaobanStoreRelationMapper.java
View file @
d5962516
...
...
@@ -62,4 +62,13 @@ public interface TabHaobanStoreRelationMapper {
* @return
*/
public
int
deleteAllStoreRalation
(
@Param
(
"enterpriseId"
)
String
enterpriseId
);
/**
* 所有门店id
*
* @param wxEnterpriseId
* @param enterpriseId
* @return
*/
List
<
String
>
listStoreIdByWxEnterpriseId
(
@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 @
d5962516
...
...
@@ -87,5 +87,14 @@ public interface StoreRangeService {
*/
public
List
<
TabStoreRange
>
queryStoreRangeByRelationId
(
String
enterpriseId
,
List
<
String
>
relationIds
);
/**
* 列表
*
* @param wxEnterpriseId
* @param enterpriseId
* @return
*/
public
List
<
String
>
listStoreIdByWxEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StoreRangeServiceImpl.java
View file @
d5962516
...
...
@@ -139,4 +139,9 @@ public class StoreRangeServiceImpl implements StoreRangeService {
public
List
<
TabStoreRange
>
queryStoreRangeByRelationId
(
String
enterpriseId
,
List
<
String
>
relationIds
)
{
return
tabHaobanStoreRangeMapper
.
listStoreRangeByRelationId
(
relationIds
,
enterpriseId
);
}
@Override
public
List
<
String
>
listStoreIdByWxEnterpriseId
(
String
wxEnterpriseId
,
String
enterpriseId
)
{
return
tabHaobanStoreRelationMapper
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
,
enterpriseId
);
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/WxEnterpriseRelatedApiServiceImpl.java
View file @
d5962516
...
...
@@ -422,5 +422,9 @@ public class WxEnterpriseRelatedApiServiceImpl implements WxEnterpriseRelatedApi
return
retPage
;
}
@Override
public
List
<
String
>
listStoreIdByWxEnterpriseId
(
String
wxEnterpriseId
)
{
List
<
String
>
list
=
storeRangeService
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
,
null
);
return
list
;
}
}
haoban-manage3-service/src/main/resources/mapper/TabHaobanStoreRelationMapper.xml
View file @
d5962516
...
...
@@ -166,6 +166,18 @@
and status_flag=1
</select>
<select
id=
"listStoreIdByWxEnterpriseId"
resultType=
"String"
>
select
store_id
from tab_haoban_store_relation
where
wx_enterprise_id = #{wxEnterpriseId,jdbcType=VARCHAR}
<if
test=
"enterpriseId!=null"
>
and enterprise_id = #{enterpriseId,jdbcType=VARCHAR}
</if>
and status_flag=1
</select>
<select
id=
"listStoreRange"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/StaffController.java
View file @
d5962516
...
...
@@ -352,7 +352,8 @@ public class StaffController extends WebBaseController{
return
!
over
;
}).
map
(
EnterpriseDetailDTO:
:
getEnterpriseId
).
collect
(
Collectors
.
toList
());
List
<
ClerkDTO
>
clerkDTOList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIds
,
search
);
List
<
String
>
storeIds
=
wxEnterpriseRelatedApiService
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
);
List
<
ClerkDTO
>
clerkDTOList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIds
,
storeIds
,
search
);
List
<
ClerkInfoVo
>
retList
=
EntityUtil
.
changeEntityListByJSON
(
ClerkInfoVo
.
class
,
clerkDTOList
);
if
(
CollectionUtils
.
isNotEmpty
(
retList
))
{
List
<
String
>
clerkIds
=
retList
.
stream
().
map
(
ClerkInfoVo:
:
getClerkId
).
collect
(
Collectors
.
toList
());
...
...
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/ClerkController.java
View file @
d5962516
...
...
@@ -451,7 +451,8 @@ public class ClerkController extends WebBaseController{
boolean
over
=
isEnterpriseOver
(
s
.
getEnterpriseId
());
return
!
over
;
}).
map
(
s
->
s
.
getEnterpriseId
()).
collect
(
Collectors
.
toList
());
List
<
ClerkDTO
>
clerkList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIdList
,
keyword
);
List
<
String
>
storeIds
=
wxEnterpriseRelatedApiService
.
listStoreIdByWxEnterpriseId
(
wxEnterpriseId
);
List
<
ClerkDTO
>
clerkList
=
clerkNewService
.
listClerkByEnterpriseIdAndSearch
(
enterpriseIdList
,
storeIds
,
keyword
);
List
<
ClerkStoreVO
>
clerkStoreList
=
new
ArrayList
<>();
if
(
CollectionUtil
.
isEmpty
(
clerkList
)){
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
clerkStoreList
);
...
...
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