select btv.*, sd.dept_name as com_name, pi.project_name
from bus_training_video btv
left join pro_project_info pi on pi.id = btv.project_id
left join sys_dept sd on sd.dept_id = btv.com_id
insert into bus_training_video
com_id,
project_id,
train_title,
train_type,
train_level,
craft_type,
craft_post,
train_file_type,
train_file_path,
train_file_image,
train_file_times,
paly_times,
sort_by,
is_del,
create_by,
create_time,
update_by,
update_time,
remark,
#{comId},
#{projectId},
#{trainTitle},
#{trainType},
#{trainLevel},
#{craftType},
#{craftPost},
#{trainFileType},
#{trainFilePath},
#{trainFileImage},
#{trainFileTimes},
#{palyTimes},
#{sortBy},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update bus_training_video
com_id = #{comId},
project_id = #{projectId},
train_title = #{trainTitle},
train_type = #{trainType},
train_level = #{trainLevel},
craft_type = #{craftType},
craft_post = #{craftPost},
train_file_type = #{trainFileType},
train_file_path = #{trainFilePath},
train_file_image = #{trainFileImage},
train_file_times = #{trainFileTimes},
paly_times = #{palyTimes},
sort_by = #{sortBy},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
update bus_training_video set is_del=2 where id = #{id}
update bus_training_video set is_del=2 where id in
#{id}