Commit 6e57bf71 by 陶光胜

增加查询导购的的接口

parent daa2747c
......@@ -446,4 +446,6 @@ public interface ClerkApiService {
* @throws
*/
ServiceResponse<List<Integer>> listClerkId(List<Integer> storeInfoIdList);
ServiceResponse<List<ClerkDTO>> listClerk(List<Integer> storeInfoIdList);
}
......@@ -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
......@@ -322,11 +322,11 @@ public interface ClerkService {
/**
* listStoreInfoIdByStoreInfoId
* @Title: listStoreInfoIdByStoreInfoId
* @Description: 查询导购idlist
* @Description: 查询导购list
* @author taogs
* @param storeInfoIdList
* @return java.util.List<java.lang.Integer>
* @throws
*/
List<Integer> listClerkIdByStoreInfoId(List<Integer> storeInfoIdList);
List<TabClerk> listClerkByStoreInfoId(List<Integer> storeInfoIdList);
}
......@@ -206,8 +206,8 @@ public class ClerkServiceImpl implements ClerkService {
}
@Override
public List<Integer> listClerkIdByStoreInfoId(List<Integer> storeInfoIdList){
return tabClerkMapper.listClerkIdByStoreInfoId(storeInfoIdList);
public List<TabClerk> listClerkByStoreInfoId(List<Integer> storeInfoIdList){
return tabClerkMapper.listClerkByStoreInfoIdList(storeInfoIdList);
}
}
......@@ -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) {
......
......@@ -430,9 +430,9 @@
</foreach>
</if>
</select>
<select id="listClerkIdByStoreInfoId" resultType="int">
<select id="listClerkByStoreInfoIdList" 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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment