timeSliceQueryPush

This commit is contained in:
ziming 2025-06-12 10:58:52 +08:00
parent 48d03c16ce
commit 1b9a4fdd80
1 changed files with 2 additions and 7 deletions

View File

@ -30,15 +30,10 @@ func (v *VoucherBiz) Notice(ctx context.Context) error {
// 获取昨天 23:59:59 的时间 // 获取昨天 23:59:59 的时间
endTime := time.Date(noticeEndDay.Year(), noticeEndDay.Month(), noticeEndDay.Day(), 23, 59, 59, 0, noticeEndDay.Location()) endTime := time.Date(noticeEndDay.Year(), noticeEndDay.Month(), noticeEndDay.Day(), 23, 59, 59, 0, noticeEndDay.Location())
req := &bo.FindInBatchesUseBo{ return v.timeSliceQuery(ctx, startTime, endTime)
StartTime: &startTime,
EndTime: &endTime,
}
return v.ExecuteNotice(ctx, req)
} }
func (v *VoucherBiz) timeSliceQueryPush(ctx context.Context, startTime, endTime time.Time) error { func (v *VoucherBiz) timeSliceQuery(ctx context.Context, startTime, endTime time.Time) error {
duration := 1 * time.Hour duration := 1 * time.Hour