bugfix 退保险金额报错

This commit is contained in:
Lemon
2026-02-06 09:13:39 +08:00
parent a9117c0bdb
commit ee9c87d165

View File

@@ -891,6 +891,13 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService {
}
// 修改保险订单表的退款状态
OrderInsuranceInfo insuranceInfo = orderInsuranceInfoService.getInsuranceInfoByOrderCode(orderBasicInfo.getOrderCode());
if (insuranceInfo == null) {
// 新增一条数据
insuranceInfo = OrderInsuranceInfo.builder()
.orderCode(orderBasicInfo.getOrderCode())
.tradeAmount(insuranceAmount)
.build();
}
insuranceInfo.setRefundStatus(Constants.ONE);
orderInsuranceInfoService.updateOrderInsuranceInfo(insuranceInfo);
}