|
|
@@ -2273,7 +2273,11 @@ public class KwoTradeOrderService {
|
|
|
if (!Objects.equals(order.getStatus(), TradeOrderStatusEnum.AUDIT.getCode())) {
|
|
|
throw new BusinessException("当前订单状态不允许撤销");
|
|
|
}
|
|
|
- TradeContractResDto tradeContractResDto = remoteContractService.queryTradeContract(param.getTradeContractId(), param.getGoodsId());
|
|
|
+ KwoTradeOrderContract byOrderId = kwoTradeOrderContractService.getByOrderId(param.getTradeContractId());
|
|
|
+ if (Objects.isNull(byOrderId)) {
|
|
|
+ throw new BusinessException("贸易合同不存在");
|
|
|
+ }
|
|
|
+ TradeContractResDto tradeContractResDto = remoteContractService.queryTradeContract(byOrderId.getContractId(), param.getGoodsId());
|
|
|
// 1. 线下钱包加回预付余额、减冻结金额
|
|
|
List<TradeContractUnitDto> unitList = tradeContractResDto.getUnitList();
|
|
|
WalletPrepaidDto freezeDto = new WalletPrepaidDto();
|