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
6e57bf71
Commit
6e57bf71
authored
Jan 15, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加查询导购的的接口
parent
daa2747c
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
10 deletions
+27
-10
ClerkApiService.java
.../src/main/java/com/gic/store/service/ClerkApiService.java
+2
-0
TabClerkMapper.java
...rc/main/java/com/gic/store/dao/mapper/TabClerkMapper.java
+3
-2
ClerkService.java
...ice/src/main/java/com/gic/store/service/ClerkService.java
+2
-2
ClerkServiceImpl.java
...ain/java/com/gic/store/service/impl/ClerkServiceImpl.java
+2
-2
ClerkApiServiceImpl.java
...com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
+16
-2
TabClerkMapper.xml
...tore-service/src/main/resources/mapper/TabClerkMapper.xml
+2
-2
No files found.
gic-store-api/src/main/java/com/gic/store/service/ClerkApiService.java
View file @
6e57bf71
...
...
@@ -446,4 +446,6 @@ public interface ClerkApiService {
* @throws
*/
ServiceResponse
<
List
<
Integer
>>
listClerkId
(
List
<
Integer
>
storeInfoIdList
);
ServiceResponse
<
List
<
ClerkDTO
>>
listClerk
(
List
<
Integer
>
storeInfoIdList
);
}
gic-store-service/src/main/java/com/gic/store/dao/mapper/TabClerkMapper.java
View file @
6e57bf71
...
...
@@ -271,9 +271,9 @@ public interface TabClerkMapper {
* @Title: listClerkIdByStoreInfoId
* @Description:
* @author taogs
* @param storeInfoIdList
* @param storeInfoIdList
* @return java.util.List<java.lang.Integer>
* @throws
*/
List
<
Integer
>
listClerkIdByStoreInfoId
(
@Param
(
"ids"
)
List
<
Integer
>
storeInfoIdList
);
List
<
TabClerk
>
listClerkByStoreInfoIdList
(
@Param
(
"ids"
)
List
<
Integer
>
storeInfoIdList
);
}
\ No newline at end of file
gic-store-service/src/main/java/com/gic/store/service/ClerkService.java
View file @
6e57bf71
...
...
@@ -322,11 +322,11 @@ public interface ClerkService {
/**
* listStoreInfoIdByStoreInfoId
* @Title: listStoreInfoIdByStoreInfoId
* @Description: 查询导购
id
list
* @Description: 查询导购list
* @author taogs
* @param storeInfoIdList
* @return java.util.List<java.lang.Integer>
* @throws
*/
List
<
Integer
>
listClerkId
ByStoreInfoId
(
List
<
Integer
>
storeInfoIdList
);
List
<
TabClerk
>
listClerk
ByStoreInfoId
(
List
<
Integer
>
storeInfoIdList
);
}
gic-store-service/src/main/java/com/gic/store/service/impl/ClerkServiceImpl.java
View file @
6e57bf71
...
...
@@ -206,8 +206,8 @@ public class ClerkServiceImpl implements ClerkService {
}
@Override
public
List
<
Integer
>
listClerkId
ByStoreInfoId
(
List
<
Integer
>
storeInfoIdList
){
return
tabClerkMapper
.
listClerk
IdByStoreInfoId
(
storeInfoIdList
);
public
List
<
TabClerk
>
listClerk
ByStoreInfoId
(
List
<
Integer
>
storeInfoIdList
){
return
tabClerkMapper
.
listClerk
ByStoreInfoIdList
(
storeInfoIdList
);
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ClerkApiServiceImpl.java
View file @
6e57bf71
...
...
@@ -944,8 +944,22 @@ public class ClerkApiServiceImpl implements ClerkApiService {
@Override
public
ServiceResponse
<
List
<
Integer
>>
listClerkId
(
List
<
Integer
>
storeInfoIdList
)
{
List
<
Integer
>
list
=
this
.
clerkService
.
listClerkIdByStoreInfoId
(
storeInfoIdList
);
return
ServiceResponse
.
success
(
list
);
List
<
TabClerk
>
list
=
this
.
clerkService
.
listClerkByStoreInfoId
(
storeInfoIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
List
<
Integer
>
clerkIdList
=
list
.
stream
().
map
(
TabClerk:
:
getClerkId
).
collect
(
Collectors
.
toList
());
return
ServiceResponse
.
success
(
clerkIdList
);
}
return
ServiceResponse
.
success
(
new
ArrayList
<>());
}
@Override
public
ServiceResponse
<
List
<
ClerkDTO
>>
listClerk
(
List
<
Integer
>
storeInfoIdList
)
{
List
<
TabClerk
>
list
=
this
.
clerkService
.
listClerkByStoreInfoId
(
storeInfoIdList
);
if
(
CollectionUtils
.
isNotEmpty
(
list
)){
List
<
ClerkDTO
>
clerkDTOList
=
EntityUtil
.
changeEntityListByJSON
(
ClerkDTO
.
class
,
list
);
return
ServiceResponse
.
success
(
clerkDTOList
);
}
return
ServiceResponse
.
success
(
new
ArrayList
<>());
}
private
ServiceResponse
<
List
<
ClerkDTO
>>
haobanClerk
(
List
<
TabClerk
>
clerkList
)
{
...
...
gic-store-service/src/main/resources/mapper/TabClerkMapper.xml
View file @
6e57bf71
...
...
@@ -430,9 +430,9 @@
</foreach>
</if>
</select>
<select
id=
"listClerk
IdByStoreInfoId"
resultType=
"int
"
>
<select
id=
"listClerk
ByStoreInfoIdList"
resultMap=
"BaseResultMap
"
>
select
clerk_id
<include
refid=
"Base_Column_List"
></include>
from tab_clerk where status = 1
<if
test=
"null != ids and ids.size > 0"
>
and store_info_id in
...
...
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