select id, name, category_id, status, del_flag,company_id,privatize,version, create_by, create_time, update_by, update_time, remark, (select count(1) from ex_question where bank_id=a.id) as total_count from ex_question_bank update ex_question_bank set del_flag=1 where id=#{bankId}