|
@@ -432,9 +432,9 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
//查出报价状态为 3
|
|
//查出报价状态为 3
|
|
|
List<InsAreaCompany> insAreaCompanies = insAreaCompanyService.getorDerIds();
|
|
List<InsAreaCompany> insAreaCompanies = insAreaCompanyService.getorDerIds();
|
|
|
// 新的费用订单表
|
|
// 新的费用订单表
|
|
|
- if (insAreaCompanies.size() > 0) {
|
|
|
|
|
|
|
+ if (!insAreaCompanies.isEmpty()) {
|
|
|
List<String> collect =
|
|
List<String> collect =
|
|
|
- insAreaCompanies.stream().map(insAreaCompany -> insAreaCompany.getOrderno()).collect(Collectors.toList());
|
|
|
|
|
|
|
+ insAreaCompanies.stream().map(InsAreaCompany::getOrderno).collect(Collectors.toList());
|
|
|
if (!collect.isEmpty()) {
|
|
if (!collect.isEmpty()) {
|
|
|
wrapper.in(InsOrders::getOrderno, collect);
|
|
wrapper.in(InsOrders::getOrderno, collect);
|
|
|
}
|
|
}
|
|
@@ -939,15 +939,16 @@ public class InsOrdersServiceImpl extends ServiceImpl<InsOrdersMapper, InsOrders
|
|
|
final String orderNo = insOrders.getOrderno();
|
|
final String orderNo = insOrders.getOrderno();
|
|
|
// 1 车辆信息
|
|
// 1 车辆信息
|
|
|
// 是否存在车辆信息
|
|
// 是否存在车辆信息
|
|
|
- if(!insOrdersCarInfoService.isExist(insOrdersBo.getCarinfo().getLicenseNo())){
|
|
|
|
|
|
|
+
|
|
|
|
|
+ InsOrdersCarInfo insOrdersCarInfo = insOrdersCarInfoService.isExist(insOrdersBo.getCarinfo().getLicenseNo());
|
|
|
|
|
+
|
|
|
|
|
+ if(ObjectUtils.isEmpty(insOrdersCarInfo)){
|
|
|
CarInfoVo carinfo = insOrdersBo.getCarinfo();
|
|
CarInfoVo carinfo = insOrdersBo.getCarinfo();
|
|
|
- InsOrdersCarInfo insOrdersCarInfo = new InsOrdersCarInfo();
|
|
|
|
|
BeanUtils.copyProperties(carinfo, insOrdersCarInfo);
|
|
BeanUtils.copyProperties(carinfo, insOrdersCarInfo);
|
|
|
insOrdersCarInfo.setId(IdGenerate.nextId());
|
|
insOrdersCarInfo.setId(IdGenerate.nextId());
|
|
|
insOrdersCarInfoService.save(insOrdersCarInfo);
|
|
insOrdersCarInfoService.save(insOrdersCarInfo);
|
|
|
insOrders.setCarInfoId(insOrdersCarInfo.getId());
|
|
insOrders.setCarInfoId(insOrdersCarInfo.getId());
|
|
|
}else{
|
|
}else{
|
|
|
- InsOrdersCarInfo insOrdersCarInfo = insOrdersCarInfoService.getCarInfoByFrameNo(insOrdersBo.getCarinfo().getFrameNo());
|
|
|
|
|
insOrders.setCarInfoId(insOrdersCarInfo.getId());
|
|
insOrders.setCarInfoId(insOrdersCarInfo.getId());
|
|
|
}
|
|
}
|
|
|
|
|
|