select subject_id, subject_name, pinyin, sort, locations, exam_types, group_name from dz_subject
insert into dz_subject
subject_id,
subject_name,
pinyin,
sort,
locations,
exam_types,
#{subjectId},
#{subjectName},
#{pinyin},
#{sort},
#{locations},
#{examTypes},
update dz_subject
subject_name = #{subjectName},
pinyin = #{pinyin},
sort = #{sort},
locations = #{locations},
exam_types = #{examTypes},
where subject_id = #{subjectId}
delete from dz_subject where subject_id = #{subjectId}
delete from dz_subject where subject_id in
#{subjectId}