Browse Source

fix bug in mapper

pull/3/MERGE
Zhou Zheng 4 years ago
parent
commit
e912a8094c
  1. 6
      dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml

6
dolphinscheduler-dao/src/main/resources/org/apache/dolphinscheduler/dao/mapper/TaskInstanceMapper.xml

@ -129,17 +129,17 @@
</if> </if>
order by instance.start_time desc order by instance.start_time desc
</select> </select>
<select id="queryTasksByPIdAndStatesAndType"> <select id="queryTaskByPIdAndStateAndType" resultType="java.lang.Integer">
select id from t_ds_task_instance select id from t_ds_task_instance
where process_instance_id = #{processInstanceId} where process_instance_id = #{processInstanceId}
and task_type = #{taskType} and task_type = #{taskType}
and state = #{state} and state = #{state}
and flag = 1 and flag = 1
</select> </select>
<select id="queryTasksBySubProcessTaskIdAndState"> <select id="queryTasksBySubProcessTaskIdAndState" resultType="java.lang.Integer">
select id from t_ds_task_instance select id from t_ds_task_instance
where process_instance_id = where process_instance_id =
(select process_instance_id in t_ds_relation_process_instance where parent_task_instance_id = #{subProcessTaskId}) (select process_instance_id from t_ds_relation_process_instance where parent_task_instance_id = #{subProcessTaskId})
and state = #{state} and state = #{state}
and flag = 1 and flag = 1
</select> </select>

Loading…
Cancel
Save