[英]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.