def results = my.Goods.findAll("""\
from Goods as g \
where g.title = ?""", ['title'])
must be \ ,not be \
def fa = my.Goods.findAll("from Goods as g where g.title = ?",['title'])
//after the field of "from" is class name
def que = my.Goods.executeQuery("from Goods g where g.title = ?",['title'])