select id, materials_name, materials_type, materials_option, materials_file_path, video_cover_type, video_cover_file_path, materials_abstract, indications, applicable_diseases, drug_name, surgical_name, check_items, inspection_items, crowd_id, crow_name, materials_status, materials_remark, materials_sort, del_flag, create_by, create_time, update_by, update_time from materials_info
insert into materials_info
materials_name,
materials_type,
materials_option,
materials_file_path,
video_cover_type,
video_cover_file_path,
materials_abstract,
indications,
applicable_diseases,
drug_name,
surgical_name,
check_items,
inspection_items,
crowd_id,
crow_name,
materials_status,
materials_remark,
materials_sort,
del_flag,
create_by,
create_time,
update_by,
update_time,
#{materialsName},
#{materialsType},
#{materialsOption},
#{materialsFilePath},
#{videoCoverType},
#{videoCoverFilePath},
#{materialsAbstract},
#{indications},
#{applicableDiseases},
#{drugName},
#{surgicalName},
#{checkItems},
#{inspectionItems},
#{crowdId},
#{crowName},
#{materialsStatus},
#{materialsRemark},
#{materialsSort},
#{delFlag},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update materials_info
materials_name =
#{materialsName},
materials_type =
#{materialsType},
materials_option =
#{materialsOption},
materials_file_path =
#{materialsFilePath},
video_cover_type =
#{videoCoverType},
video_cover_file_path =
#{videoCoverFilePath},
materials_abstract =
#{materialsAbstract},
indications =
#{indications},
applicable_diseases =
#{applicableDiseases},
drug_name =
#{drugName},
surgical_name =
#{surgicalName},
check_items =
#{checkItems},
inspection_items =
#{inspectionItems},
crowd_id =
#{crowdId},
crow_name =
#{crowName},
materials_status =
#{materialsStatus},
materials_remark =
#{materialsRemark},
materials_sort =
#{materialsSort},
del_flag =
#{delFlag},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
where id = #{id}
update materials_info set del_flag = 1 where id = #{id}
update materials_info set del_flag = 1 where id in
#{id}