预警18
This commit is contained in:
parent
4107f7f1ba
commit
1b960df589
|
|
@ -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")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue