This commit is contained in:
ziming 2025-07-02 15:02:16 +08:00
parent a0728d9d23
commit 7b8ae707bf
1 changed files with 2 additions and 2 deletions

View File

@ -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 { 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 { for _, row := range rows {
_, ok := exist[row.ProductNo] _, ok := exist[row.BatchNo]
if ok { if ok {
log.Warnf("预警查询,微信批次号%s忽略处理", row.BatchNo) log.Warnf("预警查询,微信批次号%s忽略处理", row.BatchNo)
continue continue