风险判定

This commit is contained in:
ziming 2025-05-16 16:57:43 +08:00
parent 8dfe852318
commit 6b9e51ffed
1 changed files with 1 additions and 15 deletions

View File

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