try catch 处理
This commit is contained in:
parent
6a03253d26
commit
330dad2bcb
@ -205,8 +205,12 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
|
|||||||
CustomerMain customerMain = new CustomerMain();
|
CustomerMain customerMain = new CustomerMain();
|
||||||
customerMain.setDataFrom("01");
|
customerMain.setDataFrom("01");
|
||||||
customerMainService.saveOrUpdate(customerMain);
|
customerMainService.saveOrUpdate(customerMain);
|
||||||
|
try {
|
||||||
|
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||||
|
}catch (Exception ignored){
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
|
||||||
}
|
}
|
||||||
//追加订单明细记录
|
//追加订单明细记录
|
||||||
orderInfoDetailService.save(new OrderInfoDetail(orderInfo.getId(),"线下订单创建",new Date(),0L,"1"));
|
orderInfoDetailService.save(new OrderInfoDetail(orderInfo.getId(),"线下订单创建",new Date(),0L,"1"));
|
||||||
|
@ -590,31 +590,35 @@ public class RescueDriverInfoServiceImpl extends ServiceImpl<RescueDriverInfoMap
|
|||||||
//处理redis
|
//处理redis
|
||||||
DriverInfo driverInfo = driverInfoService.getById(rescueInfo.getDriverId());
|
DriverInfo driverInfo = driverInfoService.getById(rescueInfo.getDriverId());
|
||||||
AdminUserRespDTO user = userService.getUser(driverInfo.getUserId());
|
AdminUserRespDTO user = userService.getUser(driverInfo.getUserId());
|
||||||
|
try{
|
||||||
|
// 收集客户信息
|
||||||
|
PartnerCustomerInfo customerInfo = new PartnerCustomerInfo();
|
||||||
|
customerInfo.setCustomerName(rescueInfo.getConnectionName());
|
||||||
|
customerInfo.setCustomerPhone(rescueInfo.getConnectionPhone());
|
||||||
|
customerInfo.setUserId(rescueInfo.getUserId());
|
||||||
|
|
||||||
// 收集客户信息
|
// 收集客户车辆信息
|
||||||
PartnerCustomerInfo customerInfo = new PartnerCustomerInfo();
|
List<ShopUserCar> userCarList = new ArrayList<>();
|
||||||
customerInfo.setCustomerName(rescueInfo.getConnectionName());
|
ShopUserCar userCar = new ShopUserCar();
|
||||||
customerInfo.setCustomerPhone(rescueInfo.getConnectionPhone());
|
userCar.setCarNo(rescueInfo.getLicenseNum());
|
||||||
customerInfo.setUserId(rescueInfo.getUserId());
|
userCar.setCarModel(rescueInfo.getCarType());
|
||||||
|
userCar.setCarBrand(rescueInfo.getCarBrand());
|
||||||
|
userCar.setUserId(user.getId());
|
||||||
|
userCarList.add(userCar);
|
||||||
|
|
||||||
// 收集客户车辆信息
|
customerInfo.setUserCarList(userCarList);
|
||||||
List<ShopUserCar> 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);
|
// 设置客户来源
|
||||||
|
CustomerMain customerMain = new CustomerMain();
|
||||||
|
customerMain.setDataFrom("02");
|
||||||
|
customerMainService.saveOrUpdate(customerMain);
|
||||||
|
|
||||||
// 设置客户来源
|
// 调用插入客户信息的方法
|
||||||
CustomerMain customerMain = new CustomerMain();
|
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||||
customerMain.setDataFrom("02");
|
}catch (Exception ignored){
|
||||||
customerMainService.saveOrUpdate(customerMain);
|
|
||||||
|
}
|
||||||
|
|
||||||
// 调用插入客户信息的方法
|
|
||||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
|
||||||
|
|
||||||
|
|
||||||
//所在顶级机构
|
//所在顶级机构
|
||||||
|
Loading…
Reference in New Issue
Block a user