insert into xm_reqitem_vs_reportitem(
sqxmmc ,
yq ,
xmdh ,
seq ,
tdh ,
mrz ,
def ,
sqxmdh
)values(
#{sqxmmc} ,
#{yq} ,
#{xmdh} ,
#{seq} ,
#{tdh} ,
#{mrz} ,
#{def} ,
#{sqxmdh}
)
update xm_reqitem_vs_reportitem
sqxmmc = #{sqxmmc},
seq = #{seq},
tdh = #{tdh},
mrz = #{mrz},
def = #{def},
sqxmdh = #{sqxmdh},yq =#{yq},xmdh = #{xmdh}
where sqxmdh = #{sqxmdh} and yq =#{yq} and xmdh = #{xmdh}
delete from xm_reqitem_vs_reportitem where sqxmdh = #{sqxmdh} and yq = #{yq} and xmdh = #{xmdh}
and tdh = #{tdh}