|
@@ -57,14 +57,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
<if test="tankWeight != null "> and tank_weight = #{tankWeight}</if>
|
|
<if test="tankWeight != null "> and tank_weight = #{tankWeight}</if>
|
|
<if test="powerSize != null and powerSize != ''"> and power_size = #{powerSize}</if>
|
|
<if test="powerSize != null and powerSize != ''"> and power_size = #{powerSize}</if>
|
|
<if test="tankSize != null and tankSize != ''"> and tank_size = #{tankSize}</if>
|
|
<if test="tankSize != null and tankSize != ''"> and tank_size = #{tankSize}</if>
|
|
- <if test="
|
|
|
|
-emissionStandard != null and emissionStandard != ''"> and
|
|
|
|
-emission_standard = #{
|
|
|
|
-emissionStandard}</if>
|
|
|
|
|
|
+ <if test="emissionStandard != null and emissionStandard != ''"> andemission_standard = #{emissionStandard}</if>
|
|
<if test="configurationDescription != null and configurationDescription != ''"> and configuration_description = #{configurationDescription}</if>
|
|
<if test="configurationDescription != null and configurationDescription != ''"> and configuration_description = #{configurationDescription}</if>
|
|
<if test="price != null "> and price = #{price}</if>
|
|
<if test="price != null "> and price = #{price}</if>
|
|
<if test="tankPrice != null "> and tank_price = #{tankPrice}</if>
|
|
<if test="tankPrice != null "> and tank_price = #{tankPrice}</if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="getListByFieldName" resultType="string">
|
|
|
|
+ select distinct (${fieldName}) as vals from price_info order by ${fieldName}
|
|
|
|
+
|
|
|
|
+ </select>
|
|
|
|
+
|
|
</mapper>
|
|
</mapper>
|