我们正在尝试按照下面的CQL对此CQL进行排序。type=page和created >= startOfMonth("-90d") 引用了docs,但在编译时出现错误 Could not parse cql 已尝试的CQL type=page ANDcreated >= startOfMonth("-90d") AND order by created
type=page AND created >= startOfMonth("-90
我有一个带有输入参数的存储过程,现在基于这个参数,我的'order by‘语句将会改变,如果输入参数是’ID‘(整型列),那么order by ID,如果它是' Producttype’,那么orderby Producttype,如果它是' issueDate‘,那么它应该是order by issueDate。现在我已经在我的SP中添加了2个if else语句,但是这个解决方案是不可伸缩的,所以我的问题是有更好的方法。