fuweng11 commented on code in PR #10246:
URL: https://github.com/apache/inlong/pull/10246#discussion_r1607883165
##########
inlong-manager/manager-dao/src/main/resources/mappers/StreamSourceEntityMapper.xml:
##########
@@ -120,6 +120,19 @@
</if>
</where>
</select>
+ <select id="selectDataAddTaskCount" resultType="java.lang.Integer">
+ select count(1)
+ from stream_source
+ <where>
+ <if test="groupId != null and groupId != ''">
+ and inlong_group_id = #{groupId, jdbcType=VARCHAR}
+ </if>
+ <if test="streamId != null and streamId != ''">
+ and inlong_stream_id = #{streamId, jdbcType=VARCHAR}
+ </if>
+ and task_map_id is not NULL
Review Comment:
The purpose here is to obtain the quantity of all supplementary recording
tasks under the stream, regardless of whether they have been deleted 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]