"JC-XS-"+format(today(),"yyyyMMdd")+"-"+FORMAT(if(len(sql("test","select * FROM 合同明细表 WHERE substring(htbh,7,8)=CONVERT(varchar(100), GETDATE(), 112)",1))=0,1,len(UNIQUEARRAY(sql("test","select * FROM 合同明细表 WHERE substring(htbh,7,8)=CONVERT(varchar(100), GETDATE(), 112)",1)))+1),"00")