o := orm.NewOrm()
qs := o.QueryTable(new(ExecutionJobs))
javaTimestamp = 1557738394000
qs = qs.Filter("status__in", 40, 50, 60, 70, 80, 90, 120, 130).Filter("end_time__lt", javaTimestamp)
return qs.Delete()java
刪除時, 先根據條件select找到全部要刪除的主鍵,在按主鍵刪除sql
若是是複合主鍵, 就有問題,最好本身寫sqlorm