我对 Grails 很陌生。我有一张这样的桌子:
+----+---------+----------------+----------------+-------------+--------------------+--------------+--------+---------------------+
| id | version | card_exp_month | card_exp_year | card_number | card_security_code | name_on_card | txn_id | date_created |
+----+---------+----------------+----------------+-------------+--------------------+--------------+--------+---------------------+
| 9 | 0 | ASdsadsd | Asdsadsadasdas | Asdsa | | batman | asd | 2012-08-13 19:38:22 |
+----+---------+----------------+----------------+-------------+--------------------+--------------+--------+---------------------+
在 mysql 中。我希望针对该表运行 Quartz 作业,该作业将比较date_created
时间戳与当前时间,这样,如果有任何字段的时间戳小于 30 分钟,则应将其删除。
我怎样才能做到这一点?