bug:修复修改航线名称导致的问题
This commit is contained in:
parent
b03e858b3b
commit
c136e237fb
|
|
@ -59,18 +59,40 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<!-- 更新航线文件 -->
|
||||
<update id="update" parameterType="com.ruoyi.airline.mapper.entity.AirlineFileEntity">
|
||||
update airline_file
|
||||
set name = #{name},
|
||||
air_vendor = #{airVendor},
|
||||
air_type = #{airType},
|
||||
file_name = #{fileName},
|
||||
file_url = #{fileUrl},
|
||||
type = #{type},
|
||||
source = #{source},
|
||||
status = #{status},
|
||||
file_md5 = #{fileMd5},
|
||||
update_by = #{updateBy},
|
||||
<trim prefix="set" suffixOverrides=",">
|
||||
name = #{name},
|
||||
<if test="airVendor != null">
|
||||
air_vendor = #{airVendor},
|
||||
</if>
|
||||
<if test="airType != null">
|
||||
air_type = #{airType},
|
||||
</if>
|
||||
<if test="fileName != null">
|
||||
file_name = #{fileName},
|
||||
</if>
|
||||
<if test="fileUrl != null">
|
||||
file_url = #{fileUrl},
|
||||
</if>
|
||||
<if test="type != null">
|
||||
type = #{type},
|
||||
</if>
|
||||
<if test="source != null">
|
||||
source = #{source},
|
||||
</if>
|
||||
<if test="status != null">
|
||||
status = #{status},
|
||||
</if>
|
||||
<if test="fileMd5 != null">
|
||||
file_md5 = #{fileMd5},
|
||||
</if>
|
||||
<if test="updateBy != null">
|
||||
update_by = #{updateBy},
|
||||
</if>
|
||||
update_time = now(),
|
||||
remark = #{remark}
|
||||
<if test="remark != null">
|
||||
remark = #{remark},
|
||||
</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue