db fail 当前打开连接数
This commit is contained in:
parent
2c131e30c8
commit
37143f17fa
|
|
@ -117,10 +117,6 @@ func (v *VoucherBiz) notice(ctx context.Context, order *bo.OrderBo) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = v.UpdateOrderStatus(ctx, order.ID, status); err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
event, err := status.GetOrderNotifyEvent()
|
event, err := status.GetOrderNotifyEvent()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
@ -134,7 +130,11 @@ func (v *VoucherBiz) notice(ctx context.Context, order *bo.OrderBo) error {
|
||||||
Type: order.Type,
|
Type: order.Type,
|
||||||
}
|
}
|
||||||
|
|
||||||
return v.cmbNotice(ctx, order, orderNotify)
|
if err := v.cmbNotice(ctx, order, orderNotify); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
|
return v.UpdateOrderStatus(ctx, order.ID, status)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v *VoucherBiz) cmbNotice(ctx context.Context, order *bo.OrderBo, orderNotify *bo.OrderNotifyBo) error {
|
func (v *VoucherBiz) cmbNotice(ctx context.Context, order *bo.OrderBo, orderNotify *bo.OrderNotifyBo) error {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue