风险判定
This commit is contained in:
parent
8dfe852318
commit
6b9e51ffed
|
|
@ -266,23 +266,9 @@ func (v *VoucherBiz) UpdateOrderStatus(ctx context.Context, orderId uint64, stat
|
|||
return fmt.Errorf("notice 未知券状态,orderId:%d,statuText:%s", orderId, status.GetText())
|
||||
}
|
||||
|
||||
func (v *VoucherBiz) OrderQuery(ctx context.Context, orderNo string) (*bo.OrderBo, error) {
|
||||
|
||||
order, err3 := v.OrderRepo.GetByOrderNo(ctx, orderNo)
|
||||
if err3 != nil {
|
||||
return nil, err3
|
||||
}
|
||||
|
||||
if order == nil || order.ID == 0 {
|
||||
return nil, fmt.Errorf("订单不存在:%s", orderNo)
|
||||
}
|
||||
|
||||
return order, nil
|
||||
}
|
||||
|
||||
func (v *VoucherBiz) QueryOrder(ctx context.Context, orderNo string) (string, error) {
|
||||
|
||||
order, err3 := v.OrderQuery(ctx, orderNo)
|
||||
order, err3 := v.OrderRepo.GetByOrderNo(ctx, orderNo)
|
||||
if err3 != nil {
|
||||
return "", err3
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue