车型与套餐
This commit is contained in:
@ -12,6 +12,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="batteryType" column="battery_type" />
|
||||
<result property="maxSpeed" column="max_speed" />
|
||||
<result property="weight" column="weight" />
|
||||
<result property="image" column="image" />
|
||||
<result property="status" column="status" />
|
||||
<result property="delFlag" column="del_flag" />
|
||||
<result property="createBy" column="create_by" />
|
||||
@ -35,7 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectZcCarModelVo">
|
||||
select id, model_name, brand_id, brand_name, battery_type, max_speed, weight, status, del_flag, create_by, create_time, update_by, update_time, remark, extend1, extend2, extend3 from zc_car_model
|
||||
select id, model_name, brand_id, brand_name, battery_type, max_speed, weight, image, status, del_flag, create_by, create_time, update_by, update_time, remark, extend1, extend2, extend3 from zc_car_model
|
||||
</sql>
|
||||
<sql id="selectZcCarModelVo2">
|
||||
select u.*,
|
||||
@ -67,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="batteryType != null">battery_type,</if>
|
||||
<if test="maxSpeed != null">max_speed,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="image != null">image,</if>
|
||||
<if test="status != null">status,</if>
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
@ -85,6 +87,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="batteryType != null">#{batteryType},</if>
|
||||
<if test="maxSpeed != null">#{maxSpeed},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="image != null">#{image},</if>
|
||||
<if test="status != null">#{status},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
@ -107,6 +110,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="batteryType != null">battery_type = #{batteryType},</if>
|
||||
<if test="maxSpeed != null">max_speed = #{maxSpeed},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="image != null">image = #{image},</if>
|
||||
<if test="status != null">status = #{status},</if>
|
||||
<if test="delFlag != null">del_flag = #{delFlag},</if>
|
||||
<if test="createBy != null">create_by = #{createBy},</if>
|
||||
@ -132,4 +136,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="selectAllBrands" resultType="string">
|
||||
SELECT DISTINCT brand_name FROM zc_car_model ORDER BY brand_name ASC
|
||||
</select>
|
||||
|
||||
<select id="selectModelsByBrand" resultType="string">
|
||||
SELECT model_name FROM zc_car_model WHERE brand_name = #{brandName} ORDER BY model_name ASC
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user