没看懂你下面写的什么。。为什么没有了$。。
然后sql内部为啥有$
---
{}会触发fr公式照成error。
改成这样吧。
${if(len(start_socre)==0,"","socre:"+char(123)+"'$gt':'"+start_socre+"'"+char(125))}
---
试试这几个(我这没有mongdb数据库可以测-。-)
${if(len(start_socre)==0,"","{socre:{'$gt':'"+start_socre+"'}}")}
${if(len(start_socre)==0,"","{socre:{$gt:'"+start_socre+"'}}")}
${if(len(start_socre)==0,"",char(123)+"socre:"+char(123)+"'$gt':'"+start_socre+"'"+char(125)+char(125))}
${if(len(start_socre)==0,"",char(123)+"socre:"+char(123)+"$gt:'"+start_socre+"'"+char(125)+char(125))}