From 7b8ae707bfb920edea8f0cd7ad27d085ad7205c3 Mon Sep 17 00:00:00 2001 From: ziming Date: Wed, 2 Jul 2025 15:02:16 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E8=AD=A636?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/warning_budget.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/biz/warning_budget.go b/internal/biz/warning_budget.go index b8e3f7c..2abf2bf 100644 --- a/internal/biz/warning_budget.go +++ b/internal/biz/warning_budget.go @@ -98,10 +98,10 @@ func (this *VoucherBiz) cronWarningBudget(ctx context.Context) error { return this.ProductRepo.FindWarningBudget(ctx, func(ctx context.Context, rows []*bo.ProductBo) error { - exist := make(map[string]bool, 0) + exist := make(map[string]bool) for _, row := range rows { - _, ok := exist[row.ProductNo] + _, ok := exist[row.BatchNo] if ok { log.Warnf("预警查询,微信批次号%s忽略处理", row.BatchNo) continue