caishunfeng commented on a change in pull request #7491:
URL: https://github.com/apache/dolphinscheduler/pull/7491#discussion_r772928505
##########
File path:
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskGroupQueueMapper.xml
##########
@@ -117,4 +123,32 @@
where task_id = #{taskId}
</select>
+ <select id="queryTaskGroupQueueByTaskGroupIdPaging"
resultType="org.apache.dolphinscheduler.dao.entity.TaskGroupQueue">
Review comment:
I'm not sure for the paging do correct of multi tables join.
##########
File path:
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskGroupMapper.xml
##########
@@ -52,6 +53,14 @@
</where>
</select>
+ <select id="queryTaskGroupPagingByProjectCode"
resultType="org.apache.dolphinscheduler.dao.entity.TaskGroup">
+ select
+ <include refid="baseSql">
+ </include>
+ from t_ds_task_group
+ where project_code = #{projectCode} or project_code = 0
Review comment:
Is it better to use project_code in (0, #{projectCode}) instead of `or` ?
--
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]