|
|
@@ -268,11 +268,11 @@ public class OrderServiceTest extends ApplicationTests {
|
|
|
|
|
|
@Test
|
|
|
public void transferAsset() {
|
|
|
- Order order = orderRepo.findById(965645606968102912L).orElseThrow(new BusinessException("订单"));
|
|
|
+ Order order = orderRepo.findById(965655752003829760L).orElseThrow(new BusinessException("订单"));
|
|
|
Asset asset = assetRepo.findById(order.getAssetId()).orElseThrow(new BusinessException("无"));
|
|
|
User user = userRepo.findById(order.getUserId()).orElseThrow(new BusinessException("暂无"));
|
|
|
if (asset.getStatus() == AssetStatus.TRADING) {
|
|
|
- assetService.transfer(asset, order.getPrice(), user, "订单恢复", order.getId());
|
|
|
+ assetService.transfer(asset, order.getPrice(), user, "转让", order.getId());
|
|
|
}
|
|
|
}
|
|
|
}
|