update mer_task set task_status = 8 where id = #{id} and limit_num = (select count(1) from mer_task_enroll where task_id = #{id} and task_status = 3 and verify_status = 3)