File tree Expand file tree Collapse file tree
dolphinscheduler-dao/src/main
java/org/apache/dolphinscheduler/dao
resources/org/apache/dolphinscheduler/dao/mapper Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,6 @@ List<TaskInstanceContext> queryListByTaskInstanceIdAndContextType(@Param("taskIn
3434 int deleteByTaskInstanceIdAndContextType (@ Param ("taskInstanceId" ) int taskInstanceId ,
3535 @ Param ("contextType" ) ContextType contextType );
3636
37- int updateTaskInstanceContextByTaskInstanceIdAndContextType (@ Param ("taskInstanceId" ) int taskInstanceId ,
38- @ Param ("contextType" ) ContextType contextType ,
39- @ Param ("context" ) String context );
40-
4137 List <TaskInstanceContext > batchQueryByTaskInstanceIdsAndContextType (@ Param ("taskInstanceIds" ) List <Integer > taskInstanceIds ,
4238 @ Param ("contextType" ) ContextType contextType );
4339}
Original file line number Diff line number Diff line change 1919
2020import org .apache .dolphinscheduler .common .constants .Constants ;
2121import org .apache .dolphinscheduler .common .enums .ContextType ;
22- import org .apache .dolphinscheduler .common .utils .JSONUtils ;
2322import org .apache .dolphinscheduler .dao .entity .AbstractTaskInstanceContext ;
2423import org .apache .dolphinscheduler .dao .entity .DependentResultTaskInstanceContext ;
2524import org .apache .dolphinscheduler .dao .entity .TaskInstanceContext ;
@@ -89,9 +88,7 @@ public int upsertTaskInstanceContext(TaskInstanceContext taskInstanceContext) {
8988 + o .getDateCycle ()))),
9089 ArrayList ::new ));
9190 taskInstanceContext .setTaskInstanceContext (deduplicatedDependentResultTaskInstanceContextList );
92- return mybatisMapper .updateTaskInstanceContextByTaskInstanceIdAndContextType (
93- taskInstanceContext .getTaskInstanceId (),
94- taskInstanceContext .getContextType (), JSONUtils .toJsonString (taskInstanceContext .getContext ()));
91+ return mybatisMapper .updateById (taskInstanceContext );
9592 }
9693 }
9794
Original file line number Diff line number Diff line change 3939 AND context_type = #{contextType}
4040 </delete >
4141
42- <update id =" updateTaskInstanceContextByTaskInstanceIdAndContextType" >
43- UPDATE t_ds_task_instance_context
44- SET
45- context = #{context}
46- ,update_time = now()
47- WHERE 1=1
48- AND task_instance_id = #{taskInstanceId}
49- AND context_type = #{contextType}
50- </update >
51-
5242 <select id =" batchQueryByTaskInstanceIdsAndContextType" resultType =" org.apache.dolphinscheduler.dao.entity.TaskInstanceContext" >
5343 SELECT
5444 id
You can’t perform that action at this time.
0 commit comments