diff --git a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java index 2e68139d..6f7c0163 100644 --- a/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java +++ b/dl-module-inspection/src/main/java/cn/iocoder/yudao/module/inspection/service/impl/InspectionInfoServiceImpl.java @@ -205,8 +205,12 @@ public class InspectionInfoServiceImpl extends ServiceImpl userCarList = new ArrayList<>(); + ShopUserCar userCar = new ShopUserCar(); + userCar.setCarNo(rescueInfo.getLicenseNum()); + userCar.setCarModel(rescueInfo.getCarType()); + userCar.setCarBrand(rescueInfo.getCarBrand()); + userCar.setUserId(user.getId()); + userCarList.add(userCar); - // 收集客户车辆信息 - List userCarList = new ArrayList<>(); - ShopUserCar userCar = new ShopUserCar(); - userCar.setCarNo(rescueInfo.getLicenseNum()); - userCar.setCarModel(rescueInfo.getCarType()); - userCar.setCarBrand(rescueInfo.getCarBrand()); - userCar.setUserId(user.getId()); - userCarList.add(userCar); + customerInfo.setUserCarList(userCarList); - customerInfo.setUserCarList(userCarList); + // 设置客户来源 + CustomerMain customerMain = new CustomerMain(); + customerMain.setDataFrom("02"); + customerMainService.saveOrUpdate(customerMain); - // 设置客户来源 - CustomerMain customerMain = new CustomerMain(); - customerMain.setDataFrom("02"); - customerMainService.saveOrUpdate(customerMain); + // 调用插入客户信息的方法 + customerInfoService.insertPartnerCustomerInfo(customerInfo); + }catch (Exception ignored){ + + } - // 调用插入客户信息的方法 - customerInfoService.insertPartnerCustomerInfo(customerInfo); //所在顶级机构