车辆绑定车型

This commit is contained in:
19173159168
2025-07-27 21:40:25 +08:00
parent 5352216ea7
commit 826973265e
9 changed files with 33 additions and 16 deletions

View File

@ -140,7 +140,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SELECT DISTINCT brand_name FROM zc_car_model where del_flag = 0 ORDER BY brand_name ASC
</select>
<select id="selectModelsByBrand" resultType="string">
SELECT model_name FROM zc_car_model WHERE del_flag = 0 and brand_name = #{brandName} ORDER BY model_name ASC
<select id="selectModelsByBrand" resultMap="ZcCarModelResult">
SELECT id,model_name FROM zc_car_model WHERE del_flag = 0 and brand_name = #{brandName} ORDER BY model_name ASC
</select>
</mapper>