Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vernedeng committed Nov 2, 2023
1 parent 64c3a0c commit c735f77
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,4 @@ List<InlongClusterEntity> selectByKey(@Param("clusterTag") String clusterTag, @P

int deleteByPrimaryKey(Integer id);

List<InlongClusterEntity> selectSortClusterByType(@Param("sinkType") String sinkType);

}
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,6 @@
from inlong_cluster
where is_deleted = 0
</select>
<select id="selectSortClusterByType" resultType="org.apache.inlong.manager.dao.entity.InlongClusterEntity">
select
<include refid="Base_Column_List"/>
from inlong_cluster
<where>
type = #{sinkType, jdbcType=VARCHAR}
and is_deleted = 0
</where>
</select>

<update id="updateById" parameterType="org.apache.inlong.manager.dao.entity.InlongClusterEntity">
update inlong_cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,6 @@
@ApiModel("Base sort cluster info")
public class BaseSortClusterDTO {

@ApiModelProperty("backup data path")
private String backupDataPath;

@ApiModelProperty("backup hadoop proxy user")
private String backupHadoopProxyUser;

@ApiModelProperty("application name")
private String applicationName;

/**
* Get the dto instance from the request
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ private String assignFromRelated(String sinkType, String groupId) {
InlongGroupEntity group = groupEntityMapper.selectByGroupId(groupId);
String sortClusterType = SORT_PREFIX.concat(sinkType);
List<InlongClusterEntity> clusters = clusterEntityMapper
.selectSortClusterByType(sortClusterType).stream()
.selectByKey(null, null, sortClusterType).stream()
.filter(cluster -> checkCluster(cluster.getClusterTags(), group.getInlongClusterTag()))
.collect(Collectors.toList());

Expand Down

0 comments on commit c735f77

Please sign in to comment.