预警26
This commit is contained in:
parent
cb6a810977
commit
7e383f6e51
|
|
@ -38,8 +38,8 @@ func (r *ProductRepoImpl) FindWarningBudget(ctx context.Context, fun func(ctx co
|
|||
nowTime := time.Now().Format(time.DateTime)
|
||||
|
||||
result := r.db.DB(ctx).
|
||||
Where("start_time <= ?", nowTime).
|
||||
Where("start_time <= ?", nowTime).
|
||||
Where("start_time < ?", nowTime).
|
||||
Where("end_time > ?", nowTime).
|
||||
Where("warning_budget > 0").
|
||||
Where("warning_person IS NOT NULL").
|
||||
FindInBatches(&results, 5, func(tx *gorm.DB, batch int) error {
|
||||
|
|
|
|||
Loading…
Reference in New Issue