|
|
@@ -779,6 +779,14 @@ public class KwoTradeOrderService {
|
|
|
if (!Objects.equals(HttpStatus.SUCCESS_CODE, updateResult.getCode())) {
|
|
|
throw new BusinessException(updateResult.getMsg());
|
|
|
}
|
|
|
+ //代客下单冻结金额
|
|
|
+ if (Objects.equals(source, OrderSourceEnum.SALE.getType()) && param.getTrading().startsWith("1")){
|
|
|
+ HttpResult freezeResult = paymentDubboService.freezeMoney(orderCheck.getProcureTopEntId(),
|
|
|
+ ChannelEnum.getByTrading(param.getTrading()), orderCheck.getSupplyTopEntId(), param.getPrice(), order.getId());
|
|
|
+ if (!Objects.equals(HttpStatus.SUCCESS_CODE, freezeResult.getCode())) {
|
|
|
+ throw new BusinessException(freezeResult.getMsg());
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
order.setAmount(param.getAmount()).setUnit(Objects.isNull(param.getGoodsInfo()) ? null : param.getGoodsInfo().getUnit())
|
|
|
.setPrice(param.getPrice()).setTrading(param.getTrading()).setPickupType(param.getPickupType())
|