diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/app/customer/admin/CustomerMainApi.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/app/customer/admin/CustomerMainApi.java index c44359a5..6995eed1 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/app/customer/admin/CustomerMainApi.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/app/customer/admin/CustomerMainApi.java @@ -44,4 +44,16 @@ public class CustomerMainApi { return success(customerMainService.getUserCustomer()); } + /** + * 根据车辆ID反查用户信息 + * + * @author 小李 + * @date 21:41 2024/9/24 + * @param carId 车辆ID + **/ + @GetMapping("/getByCarId") + @Operation(summary = "根据车辆ID反查用户信息") + public CommonResult getCustomerByCarId(@RequestParam("carId")String carId) { + return success(customerMainService.getCustomerByCarId(carId)); + } } diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java index c8020254..23d04b29 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/mapper/CustomerMainMapper.java @@ -36,4 +36,13 @@ public interface CustomerMainMapper extends BaseMapper { * @return cn.iocoder.yudao.module.custom.vo.CustomerMainRespVO **/ CustomerMainRespVO queryById(@Param("id") String id); + + /** + * 根据车辆ID反查用户信息 + * + * @author 小李 + * @date 21:41 2024/9/24 + * @param carId 车辆ID + **/ + CustomerMain getCustomerByCarId(@Param("carId") String carId); } \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerMainService.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerMainService.java index fa6761e9..0d62a6b3 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerMainService.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/CustomerMainService.java @@ -80,4 +80,13 @@ public interface CustomerMainService extends IService { * @date 18:42 2024/8/3 **/ void bindCustomAndCar(CustomerMainSaveReqVO saveReqVO); + + /** + * 根据车辆ID反查用户信息 + * + * @author 小李 + * @date 21:41 2024/9/24 + * @param carId 车辆ID + **/ + CustomerMain getCustomerByCarId(String carId); } \ No newline at end of file diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java index cba70ffa..989795b4 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/service/impl/CustomerMainServiceImpl.java @@ -268,4 +268,16 @@ public class CustomerMainServiceImpl extends ServiceImpl + + \ No newline at end of file diff --git a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java index eb5fcf6e..464a2177 100644 --- a/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java +++ b/dl-module-repair/src/main/java/cn/iocoder/yudao/module/booking/service/impl/DlRepairBookingServiceImpl.java @@ -53,6 +53,9 @@ public class DlRepairBookingServiceImpl extends ServiceImpl