Commit c0337801 by 周晓航

修改判断逻辑

Signed-off-by: 周晓航 <xiaohang.zhou@freemud.com>
parent 8e2cbbce
...@@ -195,9 +195,16 @@ public class PayServiceImpl { ...@@ -195,9 +195,16 @@ public class PayServiceImpl {
} }
createOrderResponse = orderAdapter.convent2CreateFatherSonOrderResponseVo(orderPayResponse, createPrepayRequestDto.getProductOrderBean()); createOrderResponse = orderAdapter.convent2CreateFatherSonOrderResponseVo(orderPayResponse, createPrepayRequestDto.getProductOrderBean());
//更新订单支付信息 //更新订单支付信息
if (Objects.nonNull(createPrepayRequestDto.getOrderExtInfoDTO()) && StringUtils.isNotBlank(cardCode)) { if (StringUtils.isNotBlank(cardCode)) {
createPrepayRequestDto.getOrderExtInfoDTO().setCardCode(cardCode); if (Objects.nonNull(createPrepayRequestDto.getOrderExtInfoDTO())) {
createPrepayRequestDto.getOrderExtInfoDTO().setCardCode(cardCode);
}else {
OrderExtInfoDto dto = new OrderExtInfoDto();
dto.setCardCode(cardCode);
createPrepayRequestDto.setOrderExtInfoDTO(dto);
}
} }
BaseResponse baseEditResponse = this.updateOrderInfo(orderPayResponse, createPrepayRequestDto.getOrderExtInfoDTO(), createPrepayRequestDto.getProductOrderBean(), LogThreadLocal.getTrackingNo()); BaseResponse baseEditResponse = this.updateOrderInfo(orderPayResponse, createPrepayRequestDto.getOrderExtInfoDTO(), createPrepayRequestDto.getProductOrderBean(), LogThreadLocal.getTrackingNo());
if (baseEditResponse != null) { if (baseEditResponse != null) {
throw new ServiceException(baseEditResponse.getCode(), baseEditResponse.getMessage()); throw new ServiceException(baseEditResponse.getCode(), baseEditResponse.getMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment