Commit 854e62e5dfd309e2faf36319e428adf3dcda2f20
1 parent
3416a2c3
order
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/diligrp/xtrade/order/service/impl/OrderServiceImpl.java
... | ... | @@ -49,7 +49,7 @@ public class OrderServiceImpl implements OrderService { |
49 | 49 | public void createOrder(OrderCreateRequestDto orderDto) { |
50 | 50 | |
51 | 51 | // 获取相关信息 |
52 | - AccountDto saccount = accountResolver.getAccount(orderDto.getSaccount()); | |
52 | + AccountDto saccount = accountResolver.resolverAccount(orderDto.getSaccount()); | |
53 | 53 | |
54 | 54 | // 构建订单创建者 |
55 | 55 | DefaultOrderCreator defaultOrderCreator = DefaultOrderCreator.builder(saccount, orderDto, orderKey()); |
... | ... | @@ -80,7 +80,7 @@ public class OrderServiceImpl implements OrderService { |
80 | 80 | throw new OrderException(OrderError.ORDER_IS_PAIED); |
81 | 81 | } |
82 | 82 | |
83 | - AccountDto buyer = accountResolver.getAccount(orderRequestDto.getBaccount()); | |
83 | + AccountDto buyer = accountResolver.resolverAccount(orderRequestDto.getBaccount()); | |
84 | 84 | if (orderDo.getSaccount().equals(orderRequestDto.getBaccount()) |
85 | 85 | || orderDo.getSaccount().equals(buyer.getParentAccountId())) { |
86 | 86 | throw new OrderException(OrderError.SELLER_EQUAL_BUYER); | ... | ... |