Commit 09d292bb by 陶光胜

门店查询支持多个门店控件id聚合

parent 1517c70a
......@@ -174,5 +174,5 @@ public interface StoreGroupApiService {
* @return
*/
ServiceResponse<Page<StoreGroupDTO>> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId,
Integer level, Integer pageSize, Integer pageNum);
Integer parentId, Integer pageSize, Integer pageNum);
}
......@@ -134,5 +134,5 @@ public interface TabStoreGroupMapper {
Page<TabStoreGroup> pageStoreGroupByIds(@Param("storeGroupIdList") List<Integer> storeGroupIdList,
@Param("enterpriseId") Integer enterpriseId,
@Param("level") Integer level);
@Param("parentId") Integer parentId);
}
\ No newline at end of file
......@@ -196,5 +196,5 @@ public interface StoreGroupService {
List<TabStoreGroup> listStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId, Integer level);
Page<TabStoreGroup> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId, Integer level);
Page<TabStoreGroup> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId, Integer parentId);
}
......@@ -165,8 +165,8 @@ public class StoreGroupServiceImpl implements StoreGroupService{
}
@Override
public Page<TabStoreGroup> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId, Integer level){
return this.tabStoreGroupMapper.pageStoreGroupByIds(storeGroupIdList, enterpriseId, level);
public Page<TabStoreGroup> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId, Integer parentId){
return this.tabStoreGroupMapper.pageStoreGroupByIds(storeGroupIdList, enterpriseId, parentId);
}
}
......@@ -366,9 +366,9 @@ public class StoreGroupApiServiceImpl implements StoreGroupApiService {
@Override
public ServiceResponse<Page<StoreGroupDTO>> pageStoreGroupByIds(List<Integer> storeGroupIdList, Integer enterpriseId,
Integer level, Integer pageSize, Integer pageNum) {
Integer parentId, Integer pageSize, Integer pageNum) {
PageHelper.startPage(pageNum, pageSize);
com.github.pagehelper.Page<TabStoreGroup> tabStoreGroups = this.storeGroupService.pageStoreGroupByIds(storeGroupIdList, enterpriseId, level);
com.github.pagehelper.Page<TabStoreGroup> tabStoreGroups = this.storeGroupService.pageStoreGroupByIds(storeGroupIdList, enterpriseId, parentId);
Page<StoreGroupDTO> storeGroupDTOPage = PageHelperUtils.changePageHelperToCurrentPage(tabStoreGroups, StoreGroupDTO.class);
return ServiceResponse.success(storeGroupDTOPage);
}
......
......@@ -287,8 +287,8 @@
#{item}
</foreach>
</if>
<if test="level != null">
and group_level = #{level}
<if test="parentId != null">
and parent_store_group_id = #{parentId}
</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