![](/img/trans.png)
[英]Grails 2.4.4: createCriteria: how to use the sum of a date and integer in order?
[英]Grails - how to use “OR” in CreateCriteria
我有这个条件:
def myList = BAS.createCriteria().list () {
projections { distinct ( "id" )
property("date")
property("id")
}
carList{
eq("login",login)
}
ccList{
eq("cmd",false)
}
order("date","desc")
}
我还想添加null作为“ cmd”的标准。 我是否需要使用OR?
谢谢
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.