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
e115a1b0
Commit
e115a1b0
authored
Dec 16, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
画布-接口
parent
c4f035b1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
0 deletions
+40
-0
StaffClerkRelationApiService.java
...oban/manage/api/service/StaffClerkRelationApiService.java
+11
-0
StaffClerkRelationService.java
...ban/manage/service/service/StaffClerkRelationService.java
+4
-0
StaffClerkRelationServiceImpl.java
...e/service/service/impl/StaffClerkRelationServiceImpl.java
+20
-0
StaffClerkRelationApiServiceImpl.java
...ce/service/out/impl/StaffClerkRelationApiServiceImpl.java
+5
-0
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/StaffClerkRelationApiService.java
View file @
e115a1b0
...
...
@@ -8,6 +8,7 @@ import com.gic.haoban.manage.api.dto.StaffClerkInfoDTO;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
public
interface
StaffClerkRelationApiService
{
...
...
@@ -222,4 +223,14 @@ public interface StaffClerkRelationApiService {
List
<
String
>
listAllClerkIdsByEnterpriseId
(
String
enterpriseId
);
/**
* 画布查询关联好办的的导购
* @param wxEnterpriseId
* @param enterpriseId
* @param creatorId
* @param storeFilterId
* @return
*/
ServiceResponse
<
Map
<
String
,
List
<
String
>>>
listClerkForCanvas
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
creatorId
,
String
storeFilterId
)
;
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/StaffClerkRelationService.java
View file @
e115a1b0
package
com
.
gic
.
haoban
.
manage
.
service
.
service
;
import
com.gic.api.base.commons.Page
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.haoban.base.api.common.BasePageInfo
;
import
com.gic.haoban.manage.api.dto.StaffClerkRelationDTO
;
import
com.gic.haoban.manage.service.entity.MemberClerkChatConfig
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Set
;
public
interface
StaffClerkRelationService
{
...
...
@@ -198,4 +200,6 @@ public interface StaffClerkRelationService {
List
<
String
>
listAllStaffIdByEnterpriseId
(
String
enterpriseId
,
String
wxEnterpriseId
);
List
<
String
>
listAllStaffIdForOpenStaff
(
String
enterpriseId
,
String
wxEnterpriseId
,
String
clerkId
,
List
<
String
>
storeIdList
);
ServiceResponse
<
Map
<
String
,
List
<
String
>>>
listClerkForCanvas
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
creatorId
,
String
storeFilterId
);
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/StaffClerkRelationServiceImpl.java
View file @
e115a1b0
...
...
@@ -11,7 +11,9 @@ import java.util.Set;
import
java.util.concurrent.TimeUnit
;
import
java.util.stream.Collectors
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.DateUtil
;
import
com.gic.enterprise.api.service.StoreWidgetService
;
import
com.gic.haoban.manage.service.entity.*
;
import
com.gic.redis.data.util.RedisUtil
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -89,6 +91,10 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
private
MemberApiService
memberApiService
;
@Autowired
private
ClerkService
clerkService
;
@Autowired
private
TabHaobanStaffClerkRelationMapper
tabHaobanStaffClerkRelationMapper
;
@Autowired
private
StoreWidgetService
storeWidgetService
;
@Override
public
List
<
StaffClerkRelationDTO
>
listBindCode
(
String
wxEnterpriseId
,
String
enterpriseId
,
Set
<
String
>
clerkCodeList
)
{
...
...
@@ -643,4 +649,18 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
public
List
<
String
>
listAllStaffIdForOpenStaff
(
String
enterpriseId
,
String
wxEnterpriseId
,
String
clerkId
,
List
<
String
>
storeIdList
)
{
return
this
.
mapper
.
listAllStaffIdForOpenStaff
(
enterpriseId
,
wxEnterpriseId
,
clerkId
,
storeIdList
);
}
@Override
public
ServiceResponse
<
Map
<
String
,
List
<
String
>>>
listClerkForCanvas
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
creatorId
,
String
storeFilterId
)
{
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>()
;
List
<
String
>
storeIdList
=
storeWidgetService
.
getStoreWidgetStore
(
storeFilterId
,
enterpriseId
,
creatorId
,
null
,
2
);
if
(
CollectionUtils
.
isEmpty
(
storeIdList
))
{
logger
.
info
(
"无门店"
);
return
ServiceResponse
.
success
();
}
logger
.
info
(
"门店筛选器查询结果数量:{}"
,
storeIdList
.
size
());
List
<
StaffClerkRelationDTO
>
list
=
tabHaobanStaffClerkRelationMapper
.
listByStoreIds
(
wxEnterpriseId
,
storeIdList
);
map
=
list
.
stream
().
collect
(
Collectors
.
groupingBy
(
StaffClerkRelationDTO:
:
getStoreId
,
Collectors
.
mapping
(
StaffClerkRelationDTO:
:
getClerkId
,
Collectors
.
toList
())))
;
return
ServiceResponse
.
success
(
map
)
;
}
}
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffClerkRelationApiServiceImpl.java
View file @
e115a1b0
...
...
@@ -659,4 +659,9 @@ public class StaffClerkRelationApiServiceImpl implements StaffClerkRelationApiSe
public
List
<
String
>
listAllClerkIdsByEnterpriseId
(
String
enterpriseId
)
{
return
this
.
staffClerkRelationService
.
listAllClerkIdsByEnterpriseId
(
enterpriseId
);
}
@Override
public
ServiceResponse
<
Map
<
String
,
List
<
String
>>>
listClerkForCanvas
(
String
wxEnterpriseId
,
String
enterpriseId
,
String
creatorId
,
String
storeFilterId
)
{
return
staffClerkRelationService
.
listClerkForCanvas
(
wxEnterpriseId
,
enterpriseId
,
creatorId
,
storeFilterId
);
}
}
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