https://help.fanruan.com/finereport/doc-view-566.html --与数据库中数据对比校验
https://help.fanruan.com/finereport/doc-view-3032.html --联立多字段校验是否与数据库中数据重复
1、单独写一个数据集比如ds3,查询数据库这张表所有的序号
select id from 表名称
2、然后在填报的校验中写公式
if(INARRAY(a2,VALUE("ds3",1))>0,false,true)
公式的意思就是如果a2的序号在ds3中查询到有,就返回为假,那么校验就不会通过!