Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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
base_platform_enterprise
gic-store
Commits
22d88e63
Commit
22d88e63
authored
May 19, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询导购店长数据
parent
03415dfa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
0 deletions
+25
-0
ClerkApiService.java
.../src/main/java/com/gic/store/service/ClerkApiService.java
+11
-0
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+14
-0
No files found.
gic-store-api/src/main/java/com/gic/store/service/ClerkApiService.java
View file @
22d88e63
...
...
@@ -121,6 +121,17 @@ public interface ClerkApiService {
ServiceResponse
<
List
<
ClerkDTO
>>
listClerkByStoreId
(
Integer
enterpriseId
,
Integer
storeId
,
String
search
);
/**
* 店长
* @Title: getHeadClerk
* @Description:
* @author guojuxing
* @param enterpriseId
* @param storeId
* @return com.gic.api.base.commons.ServiceResponse<com.gic.store.dto.ClerkDTO>
*/
ServiceResponse
<
ClerkDTO
>
getHeadClerk
(
Integer
enterpriseId
,
Integer
storeId
);
ServiceResponse
<
ClerkDTO
>
getClerkById
(
Integer
enterpriseId
,
Integer
clerkId
);
ServiceResponse
<
List
<
ClerkDTO
>>
listClerk
(
Integer
enterpriseId
,
String
search
);
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
22d88e63
...
...
@@ -445,6 +445,20 @@ public class ClerkApiServiceImpl implements ClerkApiService {
}
@Override
public
ServiceResponse
<
ClerkDTO
>
getHeadClerk
(
Integer
enterpriseId
,
Integer
storeId
)
{
ServiceResponse
<
StoreDTO
>
response
=
storeApiService
.
getStoreById
(
enterpriseId
,
storeId
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
!=
null
)
{
List
<
Integer
>
storeInfoIds
=
new
ArrayList
<>();
storeInfoIds
.
add
(
response
.
getResult
().
getStoreInfoId
());
List
<
TabClerk
>
clerkList
=
clerkService
.
listClerkByStoreInfoId
(
enterpriseId
,
storeInfoIds
,
null
,
1
);
if
(
CollectionUtils
.
isNotEmpty
(
clerkList
))
{
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityNew
(
ClerkDTO
.
class
,
clerkList
.
get
(
0
)));
}
}
return
ServiceResponse
.
success
();
}
@Override
public
ServiceResponse
<
ClerkDTO
>
getClerkById
(
Integer
enterpriseId
,
Integer
clerkId
)
{
TabClerk
tabClerk
=
this
.
clerkService
.
getById
(
clerkId
);
return
ServiceResponse
.
success
(
EntityUtil
.
changeEntityByJSON
(
ClerkDTO
.
class
,
tabClerk
));
...
...
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