Merge branch 'feat-zjy-fixbug-033' into dev
This commit is contained in:
commit
e7188528f0
@ -852,7 +852,7 @@ func UpdateReconciliationStatusBySerialNumber(req *bundle.UpdateStatusAndPayTime
|
|||||||
return nil, fmt.Errorf("查询订单失败: %v", err)
|
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) {
|
if errors.Is(err, gorm.ErrRecordNotFound) {
|
||||||
return nil, errors.New("对账单记录不存在")
|
return nil, errors.New("对账单记录不存在")
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user