This commit is contained in:
ziming 2025-07-02 09:57:33 +08:00
parent 4107f7f1ba
commit 1b960df589
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ func (this *VoucherBiz) WarningBudget(ctx context.Context, product *bo.ProductBo
}
now := time.Now()
if product.StartTime == nil || product.EndTime == nil {
return fmt.Errorf("no start or end time")
}
if now.Before(*product.StartTime) {
return fmt.Errorf("not start")
}