select id, patient_id, propaganda_id, department_name, propaganda_title, propaganda_type, propaganda_code, propaganda_content, propaganda_cover_path, article_summary, voicebroadcast, disease_type_name, propaganda_link, propaganda_barcode_path, remark, create_by, create_time, update_by, update_time from patient_propaganda
insert into patient_propaganda
patient_id,
propaganda_id,
department_name,
propaganda_title,
propaganda_type,
propaganda_code,
propaganda_content,
propaganda_cover_path,
article_summary,
voicebroadcast,
disease_type_name,
propaganda_link,
propaganda_barcode_path,
remark,
create_by,
create_time,
update_by,
update_time,
#{patientId},
#{propagandaId},
#{departmentName},
#{propagandaTitle},
#{propagandaType},
#{propagandaCode},
#{propagandaContent},
#{propagandaCoverPath},
#{articleSummary},
#{voicebroadcast},
#{diseaseTypeName},
#{propagandaLink},
#{propagandaBarcodePath},
#{remark},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
update patient_propaganda
patient_id =
#{patientId},
propaganda_id =
#{propagandaId},
department_name =
#{departmentName},
propaganda_title =
#{propagandaTitle},
propaganda_type =
#{propagandaType},
propaganda_code =
#{propagandaCode},
propaganda_content =
#{propagandaContent},
propaganda_cover_path =
#{propagandaCoverPath},
article_summary =
#{articleSummary},
voicebroadcast =
#{voicebroadcast},
disease_type_name =
#{diseaseTypeName},
propaganda_link =
#{propagandaLink},
propaganda_barcode_path =
#{propagandaBarcodePath},
remark =
#{remark},
create_by =
#{createBy},
create_time =
#{createTime},
update_by =
#{updateBy},
update_time =
#{updateTime},
where id = #{id}
delete from patient_propaganda where id = #{id}
delete from patient_propaganda where id in
#{id}