3
我可以做到這一點:的Grails個createCriteria我如何在限制循環
def criteria = Category.createCriteria();
def results = criteria.list{
like('categoryName', "%abc%") or
like('categoryName', "%qwe%")
};
,但我怎麼做了數目不詳的字符串值? 我想這樣做:
def results = criteria.list{
for (str in strList){
like('categoryName', str) or
}
};
但ofcourse它不工作。
非常感謝!!!! WORKS GREAT !!!!!!! – zevel80300 2012-02-02 15:21:08