Commit 8a633785 by 陶光胜

增加通过微盟店铺id查询

parent 70137274
......@@ -60,6 +60,17 @@ public interface WmStoreApiService {
* @throws
*/
ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId);
/**
* listWmStore
* @Title: listWmStore
* @Description:
* @author taogs
* @param wmStoreIdList
* @return com.gic.api.base.commons.ServiceResponse<java.util.List<com.gic.enterprise.dto.WmStoreDTO>>
* @throws
*/
ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList);
/**
* listWmStore
* @Title: listWmStore
......
......@@ -109,4 +109,15 @@ public interface TabWmStoreMapper {
* @throws
*/
TabWmStore getByWmMainAccount(String wmMainAccount);
/**
* listWmStore
* @Title: listWmStore
* @Description:
* @author taogs
* @param wmStoreIdList
* @return java.util.List<com.gic.enterprise.entity.TabWmStore>
* @throws
*/
List<TabWmStore> listWmStoreByStoreIds(@Param("wmStoreIdList") List<String> wmStoreIdList);
}
\ No newline at end of file
......@@ -98,6 +98,17 @@ public interface WmStoreService {
List<TabWmStore> listWmStore(Integer enterpriseId, String search);
/**
* listWmStore
* @Title: listWmStore
* @Description:
* @author taogs
* @param wmStoreIdList
* @return java.util.List<com.gic.enterprise.entity.TabWmStore>
* @throws
*/
List<TabWmStore> listWmStore(List<String> wmStoreIdList);
/**
* 已授权店铺
* @param enterpriseId
* @return
......
......@@ -81,6 +81,11 @@ public class WmStoreServiceImpl implements WmStoreService{
}
@Override
public List<TabWmStore> listWmStore(List<String> wmStoreIdList) {
return tabWmStoreMapper.listWmStoreByStoreIds(wmStoreIdList);
}
@Override
public List<TabWmStore> getHasAuth(Integer enterpriseId) {
return tabWmStoreMapper.listWmStore(enterpriseId, null, 1, null);
}
......
......@@ -88,6 +88,12 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
}
@Override
public ServiceResponse<List<WmStoreDTO>> listWmStore(List<String> wmStoreIdList) {
List<TabWmStore> list = wmStoreService.listWmStore(wmStoreIdList);
return ServiceResponse.success(EntityUtil.changeEntityListByJSON(WmStoreDTO.class, list));
}
@Override
public ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId, String search) {
List<TabWmStore> list = wmStoreService.listWmStore(enterpriseId, search);
return ServiceResponse.success(EntityUtil.changeEntityListNew(WmStoreDTO.class, list));
......
......@@ -260,4 +260,15 @@
and delete_flag = ${@com.gic.enterprise.constant.DeleteFlagConstants@NORMAL_STATUS}
limit 1
</select>
<select id="listWmStoreByStoreIds" resultMap="BaseResultMap">
select
<include refid="Base_Column_List"></include>
from tab_wm_store
where delete_flag = ${@com.gic.enterprise.constant.DeleteFlagConstants@NORMAL_STATUS}
and wm_store_id in
<foreach close=")" collection="wmStoreIdList" index="index" item="item" open="(" separator=",">
#{item}
</foreach>
</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