select a.id, a.name, a.category_id, a.status, a.logo,a.sort,a.introduce,a.state,a.company_id,
a.privatize,a.period,a.version, a.create_by, a.create_time, a.update_by, a.update_time, a.remark,b.name as company_name
from ex_course a
left join sys_company b on b.id=a.company_id
update ex_course set de_flag=1 where id=#{courseId}