From 1b9a4fdd806f8babed6207d865a51de0eebecd54 Mon Sep 17 00:00:00 2001 From: ziming Date: Thu, 12 Jun 2025 10:58:52 +0800 Subject: [PATCH] timeSliceQueryPush --- internal/biz/cron_notice.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/internal/biz/cron_notice.go b/internal/biz/cron_notice.go index 1bcb91c..a63a424 100644 --- a/internal/biz/cron_notice.go +++ b/internal/biz/cron_notice.go @@ -30,15 +30,10 @@ func (v *VoucherBiz) Notice(ctx context.Context) error { // 获取昨天 23:59:59 的时间 endTime := time.Date(noticeEndDay.Year(), noticeEndDay.Month(), noticeEndDay.Day(), 23, 59, 59, 0, noticeEndDay.Location()) - req := &bo.FindInBatchesUseBo{ - StartTime: &startTime, - EndTime: &endTime, - } - - return v.ExecuteNotice(ctx, req) + return v.timeSliceQuery(ctx, startTime, endTime) } -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