mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-19 18:45:03 +08:00
bugfix 退保险金额报错
This commit is contained in:
@@ -891,6 +891,13 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
|
|||||||
}
|
}
|
||||||
// 修改保险订单表的退款状态
|
// 修改保险订单表的退款状态
|
||||||
OrderInsuranceInfo insuranceInfo = orderInsuranceInfoService.getInsuranceInfoByOrderCode(orderBasicInfo.getOrderCode());
|
OrderInsuranceInfo insuranceInfo = orderInsuranceInfoService.getInsuranceInfoByOrderCode(orderBasicInfo.getOrderCode());
|
||||||
|
if (insuranceInfo == null) {
|
||||||
|
// 新增一条数据
|
||||||
|
insuranceInfo = OrderInsuranceInfo.builder()
|
||||||
|
.orderCode(orderBasicInfo.getOrderCode())
|
||||||
|
.tradeAmount(insuranceAmount)
|
||||||
|
.build();
|
||||||
|
}
|
||||||
insuranceInfo.setRefundStatus(Constants.ONE);
|
insuranceInfo.setRefundStatus(Constants.ONE);
|
||||||
orderInsuranceInfoService.updateOrderInsuranceInfo(insuranceInfo);
|
orderInsuranceInfoService.updateOrderInsuranceInfo(insuranceInfo);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user