insert into com_opt(
bz,
yq,xxdh,xxlb,xxqz,lx
)values(
#{bz},
#{yq},#{xxdh},#{xxlb},#{xxqz},#{lx}
)
update com_opt set
xxlb = #{xxlb},
bz = #{bz},
xxqz = #{xxqz}
where yq = #{yq} and xxdh = #{xxdh}
delete from com_opt where yq = #{yq} and xxdh = #{xxdh}
insert into com_opt_template(
opttype,comtype,optcode,optdefault,optSort,scope
)values(
#{opttype},#{comtype},#{optcode},#{optdefault},#{optSort},#{scope}
)
update com_opt_template set
opttype = #{opttype}
comtype = #{comtype}
optcode = #{optcode}
optdefault = #{optdefault}
optSort = #{optSort}
scope = #{scope}