预警36
This commit is contained in:
parent
a0728d9d23
commit
7b8ae707bf
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue