日期变更,流水号不用重置 还是按顺序流
"NC06"+FORMAT(today(),"yyMMdd")+"0001"
你的流水号每次要从数据库中取最大值
参考写法
"NC06"+FORMAT(TODAY(),"yyMMdd")+format(sql("连接名","select right(max(lsh),4) from tab",1,1)*1,"0000")
这个插件可以满足你的要求
流水号函数 https://help.fanruan.com/finereport/doc-view-5456.html