<sql>select case when (select count(*) from task_list where task_status=1 and id=${task_id} and del_flag=0)>0 then 1 else 0 end is_run</sql>
<sql>select case when (select count(*) from task_list where task_status=1 and id=${task_id} and del_flag=0 and source_type=3)>0 then 1 else 0 end is_run</sql>