DELETE FROM bpm_task_candidate
WHERE
task_id_=#{taskId}
DELETE FROM bpm_task_candidate
WHERE task_id_ in (select id_ from bpm_task where proc_inst_id_ in
#{instId}
)
update bpm_task_candidate set executor_ = #{executor}
where proc_inst_id_ in
#{instId}
and executor_ = #{userId}