diff --git a/internal/dao/orderRecordsDao.go b/internal/dao/orderRecordsDao.go index c6cf370..a4b2564 100644 --- a/internal/dao/orderRecordsDao.go +++ b/internal/dao/orderRecordsDao.go @@ -852,7 +852,7 @@ func UpdateReconciliationStatusBySerialNumber(req *bundle.UpdateStatusAndPayTime return nil, fmt.Errorf("查询订单失败: %v", err) } - if err := app.ModuleClients.BundleDB.Where("bundle_order_on = ?", req.SerialNumber).First(&existing).Error; err != nil { + if err := app.ModuleClients.BundleDB.Where("bundle_order_on = ?", order.OrderNo).First(&existing).Error; err != nil { if errors.Is(err, gorm.ErrRecordNotFound) { return nil, errors.New("对账单记录不存在") }