如果列有日期和时间,如何检查当前日期?

How to check for current date, if the column having date and time?

我应该如何匹配今天/当前日期,而不考虑日期列为 (yyyy-mm-dd HH:mm:ss) 的时间,例如 (2019-04-05 16:00:00.0) 使用 Grails GORM findBy 方法?

你可以使用 between。

def today = new Date().clearTime()
def tomorrow = use( TimeCategory ){ today + 1.day }.clearTime()

YourDomain.findByYourDateBetween( today, tomorrow )

可能更适合 findAllBy。