delete from lab_resultmed and jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh} and xmdh = #{xmdh} and ywdh = #{ywdh} insert into lab_resultmed (jyrq, yq, ybh, xmdh, xh, ywdh, mic, rad, csjg, jgbz, bz, txtresult) values (#{jyrq}, #{yq}, #{ybh}, #{xmdh}, #{xh}, #{ywdh}, #{mic}, #{rad}, #{csjg}, #{jgbz}, #{bz}, #{txtresult}) insert into lab_resultmed (jyrq, yq, ybh,xmdh, xh, ywdh, mic,rad, csjg, jgbz, bz,txtresult) SELECT jyrq, yq, ybh,xmdh, xh, ywdh, mic,rad, csjg, jgbz, bz,txtresult FROM ( SELECT #{item.jyrq}, #{item.yq}, #{item.ybh}, #{item.xmdh}, #{item.xh}, #{item.ywdh}, #{item.item.mic}, #{item.rad}, #{item.csjg}, #{item.jgbz}, #{item.bz},#{item.txtresult} ) AS temp update lab_resultmed set xh=#{xh},ywdh=#{ywdh}, mic=#{mic},rad=#{rad}, csjg=#{csjg}, jgbz=#{jgbz},bz=#{bz},txtresult=#{txtresult} and jyrq = #{jyrq} and yq = #{yq} and ybh = #{ybh} and xmdh = #{xmdh} and ywdh = #{ywdh}