Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
06b71889e5
@ -200,13 +200,16 @@ public class InspectionInfoServiceImpl extends ServiceImpl<InspectionInfoMapper,
|
||||
customerInfo.setCustomerName(user.getNickname());
|
||||
customerInfo.setSex("0");
|
||||
customerInfo.setUserAge(user.getUserAge());
|
||||
|
||||
// 设置客户来源
|
||||
CustomerMain customerMain = new CustomerMain();
|
||||
customerMain.setDataFrom("01");
|
||||
customerMainService.saveOrUpdate(customerMain);
|
||||
try {
|
||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||
}catch (Exception ignored){
|
||||
|
||||
}
|
||||
|
||||
customerInfoService.insertPartnerCustomerInfo(customerInfo);
|
||||
}
|
||||
//追加订单明细记录
|
||||
orderInfoDetailService.save(new OrderInfoDetail(orderInfo.getId(),"线下订单创建",new Date(),0L,"1"));
|
||||
|
@ -126,7 +126,7 @@ public class PartnerCustomerInfoServiceImpl extends ServiceImpl<PartnerCustomerI
|
||||
* @return 结果
|
||||
*/
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
|
||||
public int insertPartnerCustomerInfo(PartnerCustomerInfo partnerCustomerInfo) throws Exception {
|
||||
// 获取当前商户信息
|
||||
ShopMallPartners partners = partnerService.shopInfo();
|
||||
|
@ -590,31 +590,35 @@ public class RescueDriverInfoServiceImpl extends ServiceImpl<RescueDriverInfoMap
|
||||
//处理redis
|
||||
DriverInfo driverInfo = driverInfoService.getById(rescueInfo.getDriverId());
|
||||
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();
|
||||
customerInfo.setCustomerName(rescueInfo.getConnectionName());
|
||||
customerInfo.setCustomerPhone(rescueInfo.getConnectionPhone());
|
||||
customerInfo.setUserId(rescueInfo.getUserId());
|
||||
// 收集客户车辆信息
|
||||
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);
|
||||
|
||||
// 收集客户车辆信息
|
||||
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);
|
||||
|
||||
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);
|
||||
|
||||
|
||||
//所在顶级机构
|
||||
|
Loading…
Reference in New Issue
Block a user