This commit is contained in:
ziming 2025-07-02 11:00:03 +08:00
parent cb6a810977
commit 7e383f6e51
1 changed files with 2 additions and 2 deletions

View File

@ -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 {