|
@@ -23,8 +23,8 @@
|
|
from model_config c
|
|
from model_config c
|
|
LEFT JOIN model_vehicle v on c.vehicle_id = v.id
|
|
LEFT JOIN model_vehicle v on c.vehicle_id = v.id
|
|
WHERE c.is_deleted = '0' and c.share = #{share,jdbcType=VARCHAR}
|
|
WHERE c.is_deleted = '0' and c.share = #{share,jdbcType=VARCHAR}
|
|
- <if test="configId != null and configId != ''">
|
|
|
|
- and c.config_id like CONCAT('%',#{configId,jdbcType=VARCHAR},'%')
|
|
|
|
|
|
+ <if test="configCode != null and configCode != ''">
|
|
|
|
+ and c.config_code like CONCAT('%',#{configCode,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
</if>
|
|
<if test="configName != null and configName != ''">
|
|
<if test="configName != null and configName != ''">
|
|
and c.config_name like CONCAT('%',#{configName,jdbcType=VARCHAR},'%')
|
|
and c.config_name like CONCAT('%',#{configName,jdbcType=VARCHAR},'%')
|
|
@@ -32,6 +32,15 @@
|
|
<if test="configDescription != null and configDescription != ''">
|
|
<if test="configDescription != null and configDescription != ''">
|
|
and c.description like CONCAT('%',#{configDescription,jdbcType=VARCHAR},'%')
|
|
and c.description like CONCAT('%',#{configDescription,jdbcType=VARCHAR},'%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="vehicleName != null and vehicleName != ''">
|
|
|
|
+ and v.vehicle_name like CONCAT('%',#{vehicleName,jdbcType=VARCHAR},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="vehicleDescription != null and vehicleDescription != ''">
|
|
|
|
+ and v.description like CONCAT('%',#{vehicleDescription,jdbcType=VARCHAR},'%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="share != null and share != ''">
|
|
|
|
+ and c.share = #{share,jdbcType=VARCHAR}
|
|
|
|
+ </if>
|
|
<if test="createUserId != null and createUserId != ''">
|
|
<if test="createUserId != null and createUserId != ''">
|
|
and c.create_user_id = #{createUserId,jdbcType=VARCHAR}
|
|
and c.create_user_id = #{createUserId,jdbcType=VARCHAR}
|
|
</if>
|
|
</if>
|
|
@@ -135,7 +144,6 @@
|
|
|
|
|
|
<update id="updateConfig" parameterType="api.common.pojo.po.model.ConfigPO">
|
|
<update id="updateConfig" parameterType="api.common.pojo.po.model.ConfigPO">
|
|
update model_config set
|
|
update model_config set
|
|
- config_code = #{configCode,jdbcType=VARCHAR},
|
|
|
|
config_name = #{configName,jdbcType=VARCHAR},
|
|
config_name = #{configName,jdbcType=VARCHAR},
|
|
description = #{description,jdbcType=VARCHAR},
|
|
description = #{description,jdbcType=VARCHAR},
|
|
vehicle_id = #{vehicleId,jdbcType=VARCHAR},
|
|
vehicle_id = #{vehicleId,jdbcType=VARCHAR},
|