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()
删除时, 先根据条件select找到所有要删除的主键,在按主键删除
如果是复合主键, 就有问题,最好自己写sql