select bus_training_video.*,sys_dept.dept_name
from bus_training_video
left join sys_dept on bus_training_video.dept_id=sys_dept.dept_id
insert into bus_training_video
dept_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,
ord,
is_del,
create_by,
create_time,
update_by,
update_time,
remark,
#{deptId},
#{projectId},
#{trainTitle},
#{trainType},
#{trainLevel},
#{craftType},
#{craftPost},
#{trainFileType},
#{trainFilePath},
#{trainFileImage},
#{trainFileTimes},
#{ord},
#{isDel},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
update bus_training_video
dept_id = #{deptId},
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},
ord = #{ord},
is_del = #{isDel},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
where id = #{id}
delete from bus_training_video where id = #{id}
delete from bus_training_video where id in
#{id}