diff --git a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java index 4678348c..52b4c6dc 100644 --- a/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java +++ b/dl-module-base/src/main/java/cn/iocoder/yudao/module/custom/vo/CarMainRespVO.java @@ -44,4 +44,6 @@ public class CarMainRespVO extends CarMain { List brandAndModel; /** 车辆类型 */ private String brandType; + /** 车辆logo */ + private String logoImg; } \ No newline at end of file diff --git a/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml b/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml index a3a4dfd3..1ecba2ea 100644 --- a/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml +++ b/dl-module-base/src/main/resources/mapper/custom/CarMainMapper.xml @@ -36,6 +36,7 @@ SELECT , bcb.brand_name AS brandStr, + bcb.logo_img AS logoImg, bcm.model_name AS modelStr FROM `base_car_main` tbcm @@ -73,6 +74,9 @@ AND tbcm.engine_number LIKE CONCAT('%',#{dto.engineNumber},'%') + + AND tbcm.user_id = #{dto.userId} + ORDER BY tbcm.car_register_date DESC