select subject_id, bank_id, topic_title, topic_option, answer, datetime ,topic_type from t_bank_subject
insert into t_bank_subject
bank_id,
topic_title,
topic_option,
answer,
datetime,
topic_type,
#{bankId},
#{topicTitle},
#{topicOption},
#{answer},
#{datetime},
#{topicType},
update t_bank_subject
bank_id = #{bankId},
topic_title = #{topicTitle},
topic_option = #{topicOption},
answer = #{answer},
datetime = #{datetime},
topic_type = #{topicType},
where subject_id = #{subjectId}
delete from t_bank_subject where subject_id = #{subjectId}
delete from t_bank_subject where subject_id in
#{subjectId}
insert into t_bank_subject (bank_id,topic_title,topic_option,answer,datetime,topic_type)
values
( #{item.bankId},#{item.topicTitle},#{item.topicOption},#{item.answer},#{item.datetime},#{item.topicType})