|
@@ -209,31 +209,31 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
String orderStatus = insAreaCompany.getOrderstatus();
|
|
String orderStatus = insAreaCompany.getOrderstatus();
|
|
|
|
|
+ InsOrders insOrders = getById(insAreaCompany.getOrderno());
|
|
|
|
|
+ // 查出最新状态的子订单修改
|
|
|
|
|
+ if (!InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insAreaCompany.getOrderstatus())) {
|
|
|
|
|
+ orderStatus = insAreaCompanyService.queryLatestStatus(insAreaCompany.getOrderno());
|
|
|
|
|
+ } else {
|
|
|
|
|
+ insOrders.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
|
|
+ insOrders.setInsCompany(insAreaCompany.getInscompany());
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- if (!ObjectUtils.isEmpty(insAreaCompany)) {
|
|
|
|
|
- InsOrders insOrders = getById(insAreaCompany.getOrderno());
|
|
|
|
|
-
|
|
|
|
|
- // 查出最新状态的子订单修改
|
|
|
|
|
- if (!InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insAreaCompany.getOrderstatus())) {
|
|
|
|
|
- orderStatus = insAreaCompanyService.queryLatestStatus(insAreaCompany.getOrderno());
|
|
|
|
|
- } else {
|
|
|
|
|
- insOrders.setCompanyId(insAreaCompany.getCompanyId());
|
|
|
|
|
- insOrders.setInsCompany(insAreaCompany.getInscompany());
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insOrders.getOrderstatus())) {
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insOrders.getOrderstatus())) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
- insOrders.setOrderstatus(orderStatus);
|
|
|
|
|
- LambdaQueryWrapper<InsOrders> insOrdersLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
- insOrdersLambdaQueryWrapper.ne(InsOrders::getOrderstatus, InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
|
|
|
- insOrdersLambdaQueryWrapper.eq(InsOrders::getOrderno, insAreaCompany.getOrderno());
|
|
|
|
|
- update(insOrders, insOrdersLambdaQueryWrapper);
|
|
|
|
|
|
|
+ insOrders.setOrderstatus(orderStatus);
|
|
|
|
|
+ LambdaQueryWrapper<InsOrders> insOrdersLambdaQueryWrapper = new LambdaQueryWrapper<>();
|
|
|
|
|
+ insOrdersLambdaQueryWrapper.ne(InsOrders::getOrderstatus, InsOrderStatusEnum.ACCEPT_INSURANCE.getCode());
|
|
|
|
|
+ insOrdersLambdaQueryWrapper.eq(InsOrders::getOrderno, insAreaCompany.getOrderno());
|
|
|
|
|
+ update(insOrders, insOrdersLambdaQueryWrapper);
|
|
|
|
|
|
|
|
|
|
+ //已承保添加轨迹表
|
|
|
|
|
+ if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insAreaCompany.getOrderstatus())) {
|
|
|
//添加审核表及轨迹信息
|
|
//添加审核表及轨迹信息
|
|
|
insFeeAuditService.saveInsFeeAuditAndHistory(insAreaCompany.getOrderno(), insAreaCompany.getId(), true, FeeAuditAuditstatus.UNREVICEWED.getCode());
|
|
insFeeAuditService.saveInsFeeAuditAndHistory(insAreaCompany.getOrderno(), insAreaCompany.getId(), true, FeeAuditAuditstatus.UNREVICEWED.getCode());
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|