select id, patientno, pattype, name, sex, idcardno, age, telcode, openid, del_flag, update_by, update_time, create_by, create_time, batch_name, batch_no from pat_archive_import insert into pat_archive_import patientno, pattype, name, sex, idcardno, age, telcode, openid, del_flag, update_by, update_time, create_by, create_time, batch_name, batch_no, #{patientno}, #{pattype}, #{name}, #{sex}, #{idcardno}, #{age}, #{telcode}, #{openid}, #{delFlag}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{batchName}, #{batchNo}, update pat_archive_import patientno = #{patientno}, pattype = #{pattype}, name = #{name}, sex = #{sex}, idcardno = #{idcardno}, age = #{age}, telcode = #{telcode}, openid = #{openid}, del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, batch_name = #{batchName}, batch_no = #{batchNo}, where id = #{id} update pat_archive_import del_flag =1 where id = #{id} update pat_archive_import del_flag =1 where id in #{id}