select update_id,
version_no,
update_content,
package_url,
package_name,
force_update,
create_time
from t_version_update
insert into t_version_update (
version_no,
update_content,
package_url,
package_name,
force_update,
create_by,
create_time
) values (
#{versionNo},
#{updateContent},
#{packageUrl},
#{packageName},
#{forceUpdate},
#{createBy},
sysdate()
)
update t_version_update
set version_no = #{versionNo},
update_content = #{updateContent},
package_url = #{packageUrl},
package_name = #{packageName},
force_update = #{forceUpdate},
update_by = #{updateBy},
update_time = sysdate()
where update_id = #{updateId}
and del_flag = '0'
update t_version_update
set del_flag = '1',
update_time = sysdate()
where del_flag = '0'
and update_id in
#{updateId}