select distinct(ta.name_) from act_ru_task ta where ta.execution_id_ in
(select ex.id_ from act_ru_execution ex where ex.proc_inst_id_=(select pro.processInstanceId from huzhou_processinfo pro where pro.projectId=#{planId} and pro.processstatus!=0))
(select ex.id_ from act_ru_execution ex where ex.proc_inst_id_=(select pro.processInstanceId from huzhou_processinfo pro where pro.projectId=#{planId} and pro.processstatus =1))