数据库里面 搞个序号自增列
不要从界面的序号填报进去
界面上直接用seq()显示需要就行了
----------------------
推荐
使用UUID自动生成主键 https://help.fanruan.com/finereport/doc-view-2869.html
select max(uids) from table
每次算出最大值+1