|
|
@@ -124,13 +124,8 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- LambdaQueryWrapper<InsAreaCompany> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.eq(InsAreaCompany::getOrderno, orderNo)
|
|
|
- .orderByDesc(InsAreaCompany::getOrderstatus)
|
|
|
- .last("limit 1");
|
|
|
-
|
|
|
// 查出最新状态的子订单修改
|
|
|
- InsAreaCompany insAreaCompany = insAreaCompanyService.getOne(wrapper);
|
|
|
+ InsAreaCompany insAreaCompany = insAreaCompanyService.queryLatestStatus(orderNo);
|
|
|
if (!ObjectUtils.isEmpty(insAreaCompany)) {
|
|
|
InsOrders insOrders = getById(orderNo);
|
|
|
if (InsOrderStatusEnum.ACCEPT_INSURANCE.getCode().equals(insOrders.getOrderstatus())) {
|