healchow commented on code in PR #5556: URL: https://github.com/apache/inlong/pull/5556#discussion_r948600609
########## inlong-manager/manager-dao/src/main/resources/mappers/StreamSourceEntityMapper.xml: ########## @@ -187,6 +187,24 @@ limit #{limit, jdbcType=INTEGER} </where> </select> + <select id="selectByAgentIpOrCluster" resultType="org.apache.inlong.manager.dao.entity.StreamSourceEntity"> + select + <include refid="Base_Column_List"/> + from stream_source + <where> + is_deleted = 0 + and status in + <foreach item="item" index="index" collection="statusList" open="(" close=")" separator=","> Review Comment: Before the foreach, suggest checking whether the list is null or not. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@inlong.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org