Commit bb749aa4 by 陶光胜

接口调整

parent 7f6d484b
...@@ -53,6 +53,8 @@ public interface WmStoreApiService { ...@@ -53,6 +53,8 @@ public interface WmStoreApiService {
ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId); ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId);
ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId, String search);
ServiceResponse<WmStoreDTO> getWmStoreByWmMallStoreId(Integer wmMallStoreId); ServiceResponse<WmStoreDTO> getWmStoreByWmMallStoreId(Integer wmMallStoreId);
/** /**
......
...@@ -67,7 +67,7 @@ public interface TabWmStoreMapper { ...@@ -67,7 +67,7 @@ public interface TabWmStoreMapper {
int countByStoreName(@Param("storeName") String storeName, @Param("wmMallStoreId") Integer wmMallStoreId, @Param("enterpriseId") Integer enterpriseId); int countByStoreName(@Param("storeName") String storeName, @Param("wmMallStoreId") Integer wmMallStoreId, @Param("enterpriseId") Integer enterpriseId);
List<TabWmStore> listWmStore(@Param("enterpriseId") Integer enterpriseId, @Param("appId") String appId, @Param("authStatus") Integer authStatus); List<TabWmStore> listWmStore(@Param("enterpriseId") Integer enterpriseId, @Param("appId") String appId, @Param("authStatus") Integer authStatus, @Param("search") String search);
TabWmStore getByWmMainAccount(String wmMainAccount); TabWmStore getByWmMainAccount(String wmMainAccount);
} }
\ No newline at end of file
...@@ -60,7 +60,7 @@ public interface WmStoreService { ...@@ -60,7 +60,7 @@ public interface WmStoreService {

*/ 
*/
TabWmStore getByWmMainAccount(String wmMainAccount); TabWmStore getByWmMainAccount(String wmMainAccount);
List<TabWmStore> listWmStore(Integer enterpriseId); List<TabWmStore> listWmStore(Integer enterpriseId, String search);
/** /**
* 已授权店铺 * 已授权店铺
......
...@@ -64,12 +64,12 @@ public class WmStoreServiceImpl implements WmStoreService{ ...@@ -64,12 +64,12 @@ public class WmStoreServiceImpl implements WmStoreService{
} }
@Override @Override
public List<TabWmStore> listWmStore(Integer enterpriseId) { public List<TabWmStore> listWmStore(Integer enterpriseId, String search) {
return tabWmStoreMapper.listWmStore(enterpriseId, null, null); return tabWmStoreMapper.listWmStore(enterpriseId, null, null, search);
} }
@Override @Override
public List<TabWmStore> getHasAuth(Integer enterpriseId) { public List<TabWmStore> getHasAuth(Integer enterpriseId) {
return tabWmStoreMapper.listWmStore(enterpriseId, null, 1); return tabWmStoreMapper.listWmStore(enterpriseId, null, 1, null);
} }
} }
...@@ -77,7 +77,13 @@ public class WmStoreApiServiceImpl implements WmStoreApiService { ...@@ -77,7 +77,13 @@ public class WmStoreApiServiceImpl implements WmStoreApiService {
@Override @Override
public ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId) { public ServiceResponse<List<WmStoreDTO>> listWmStore(Integer enterpriseId) {
List<TabWmStore> list = wmStoreService.listWmStore(enterpriseId); List<TabWmStore> list = wmStoreService.listWmStore(enterpriseId, null);
return ServiceResponse.success(EntityUtil.changeEntityListNew(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)); return ServiceResponse.success(EntityUtil.changeEntityListNew(WmStoreDTO.class, list));
} }
......
...@@ -242,6 +242,9 @@ ...@@ -242,6 +242,9 @@
<if test="authStatus != null"> <if test="authStatus != null">
and auth_status = #{authStatus} and auth_status = #{authStatus}
</if> </if>
<if test="search != null and search !=''">
and wm_main_account like concat('%', #{search}, '%')
</if>
</select> </select>
<select id="getByWmMainAccount" resultMap="BaseResultMap"> <select id="getByWmMainAccount" resultMap="BaseResultMap">
......
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