Skip to content

Commit

Permalink
[INLONG-7206][Manager] Fix the problem of the selectBriefList method …
Browse files Browse the repository at this point in the history
…in the InlongGroupEntity.xml file is incorrect (#7207)
  • Loading branch information
fuweng11 authored and dockerzhang committed Jan 10, 2023
1 parent 43da7e2 commit 9bd8781
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
</select>
<select id="selectBriefList" parameterType="org.apache.inlong.manager.pojo.group.InlongGroupPageRequest"
resultType="org.apache.inlong.manager.pojo.group.InlongGroupBriefInfo">
select id, inlong_group_id, name, mq_type, mq_resource, dataReportType, inlong_cluster_tag, ext_params,
select id, inlong_group_id, name, mq_type, mq_resource, inlong_cluster_tag, ext_params,
in_charges, status, creator, modifier, create_time, modify_time
from inlong_group
<where>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@

package org.apache.inlong.manager.service.core.impl;

import org.apache.inlong.manager.dao.mapper.InlongGroupEntityMapper;
import org.apache.inlong.manager.pojo.group.InlongGroupBriefInfo;
import org.apache.inlong.manager.pojo.group.InlongGroupPageRequest;
import org.apache.inlong.manager.pojo.stream.InlongStreamInfo;
import org.apache.inlong.manager.pojo.stream.InlongStreamRequest;
import org.apache.inlong.manager.service.group.InlongGroupServiceTest;
Expand All @@ -27,6 +30,8 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.TestComponent;

import java.util.List;

/**
* Inlong stream service test
*/
Expand All @@ -39,6 +44,8 @@ public class InlongStreamServiceTest {
private InlongStreamService streamService;
@Autowired
private InlongGroupServiceTest groupServiceTest;
@Autowired
private InlongGroupEntityMapper groupMapper;

/**
* Test save inlong stream
Expand All @@ -54,6 +61,8 @@ public Integer saveInlongStream(String groupId, String streamId, String operator
}

groupServiceTest.saveGroup(groupId, operator);
InlongGroupPageRequest groupRequest = InlongGroupPageRequest.builder().build();
List<InlongGroupBriefInfo> groupList = groupMapper.selectBriefList(groupRequest);

InlongStreamRequest request = new InlongStreamRequest();
request.setInlongGroupId(groupId);
Expand Down

0 comments on commit 9bd8781

Please sign in to comment.