Commit 8dacf20d by 陶光胜

增加通过微盟店铺id查询

parent 8a633785
......@@ -67,10 +67,11 @@ public interface WmStoreApiService {
* @Description:
* @author taogs
* @param wmStoreIdList
* @param search
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.enterprise.dto.WmStoreDTO>>
* @throws
*/
ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList);
ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList, String search);
/**
* listWmStore
* @Title: listWmStore
......
......@@ -116,8 +116,9 @@ public interface TabWmStoreMapper {
* @Description:
* @author taogs
* @param wmStoreIdList
* @param search
* @return java.util.List<com.gic.enterprise.entity.TabWmStore>
* @throws
*/
List<TabWmStore> listWmStoreByStoreIds(@Param("wmStoreIdList") List<String> wmStoreIdList);
List<TabWmStore> listWmStoreByStoreIds(@Param("wmStoreIdList") List<String> wmStoreIdList, @Param("search") String search);
}
\ No newline at end of file
......@@ -103,10 +103,11 @@ public interface WmStoreService {
* @Description:
* @author taogs
* @param wmStoreIdList
* @param search
* @return java.util.List<com.gic.enterprise.entity.TabWmStore>
* @throws
*/
List<TabWmStore> listWmStore(List<String> wmStoreIdList);
List<TabWmStore> listWmStore(List<String> wmStoreIdList, String search);
/**
* 已授权店铺
......
......@@ -81,8 +81,8 @@ public class WmStoreServiceImpl implements WmStoreService{
}
@Override
public List<TabWmStore> listWmStore(List<String> wmStoreIdList) {
return tabWmStoreMapper.listWmStoreByStoreIds(wmStoreIdList);
public List<TabWmStore> listWmStore(List<String> wmStoreIdList, String search) {
return tabWmStoreMapper.listWmStoreByStoreIds(wmStoreIdList, search);
}
@Override
......
......@@ -88,8 +88,8 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
}
@Override
public ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList) {
List<TabWmStore> list = wmStoreService.listWmStore(wmStoreIdList);
public ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList, String search) {
List<TabWmStore> list = wmStoreService.listWmStore(wmStoreIdList, search);
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(WmStoreDTO.class, list));
}
......
......@@ -270,5 +270,8 @@
<foreach close=")" collection="wmStoreIdList" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
<if test="search != null and search !=''">
and wm_pid_name like concat('%', #{search}, '%')
</if>
</select>
</mapper>
\ No newline at end of file
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