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 04941ab3..2e68139d 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 @@ -9,6 +9,8 @@ import cn.hutool.core.date.DateUtil; import cn.hutool.core.util.ObjectUtil; import cn.iocoder.yudao.framework.security.core.LoginUser; import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils; +import cn.iocoder.yudao.module.custom.entity.CustomerMain; +import cn.iocoder.yudao.module.custom.service.CustomerMainService; import cn.iocoder.yudao.module.partner.entity.PartnerCustomerInfo; import cn.iocoder.yudao.module.partner.service.IPartnerCustomerInfoService; import cn.iocoder.yudao.module.partner.service.IPartnerWorkerService; @@ -38,6 +40,8 @@ import org.springframework.context.annotation.Lazy; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import javax.annotation.Resource; + /** * 【请填写功能名称】Service业务层处理 * @@ -68,7 +72,8 @@ 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); + + customerInfo.setUserCarList(userCarList); + + // 设置客户来源 + CustomerMain customerMain = new CustomerMain(); + customerMain.setDataFrom("02"); + customerMainService.saveOrUpdate(customerMain); + + // 调用插入客户信息的方法 + customerInfoService.insertPartnerCustomerInfo(customerInfo); + + //所在顶级机构 String redisKey = Redis_Driver_Key + driverInfo.getTenantId() + ":" + rescueInfo.getDriverId(); Object temp = redisCache.getCacheMapValue(redisKey, "rescueIds"); @@ -588,7 +624,7 @@ public class RescueDriverInfoServiceImpl extends ServiceImpl