提交 8c41d299 作者: zhenjie

修改关闭订单

上级 98074ecf
package com.mmc.oms.service.uav.impl; package com.mmc.oms.service.uav.impl;
import com.mmc.oms.client.PmsClient; import com.mmc.oms.client.PmsClient;
import com.mmc.oms.common.BizException;
import com.mmc.oms.common.ResultEnum; import com.mmc.oms.common.ResultEnum;
import com.mmc.oms.common.constant.UavOrderProportion; import com.mmc.oms.common.constant.UavOrderProportion;
import com.mmc.oms.common.json.JsonUtil; import com.mmc.oms.common.json.JsonUtil;
...@@ -287,6 +288,7 @@ public class UavOrderServiceImpl implements UavOrderService { ...@@ -287,6 +288,7 @@ public class UavOrderServiceImpl implements UavOrderService {
ResultBody applyRefund = paymentAppApi.applyRefund(applyRefundVO); ResultBody applyRefund = paymentAppApi.applyRefund(applyRefundVO);
if (!applyRefund.getCode().equals(ResultEnum.SUCCESS.getResultCode())) { if (!applyRefund.getCode().equals(ResultEnum.SUCCESS.getResultCode())) {
TransactionAspectSupport.currentTransactionStatus().setRollbackOnly(); TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();
throw new BizException("关闭订单失败!");
} }
return ResultBody.success(); return ResultBody.success();
} }
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
create_time, create_time,
check_time check_time
from uav_order_pay from uav_order_pay
where uav_order_id = #{uavOrderId} where uav_order_id = #{uavOrderId} and pay_type = 2
</select> </select>
<select id="listUavOrderSkuDO" resultType="com.mmc.oms.entity.uav.UavOrderSkuDO"> <select id="listUavOrderSkuDO" resultType="com.mmc.oms.entity.uav.UavOrderSkuDO">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论