db fail 当前打开连接数

This commit is contained in:
李子铭 2025-03-20 17:11:48 +08:00
parent 2c131e30c8
commit 37143f17fa
1 changed files with 5 additions and 5 deletions

View File

@ -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 {