|
@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null and type != ''"> and `type` = #{type}</if>
|
|
|
<if test="dataType != null and dataType != ''"> and `data_type` = #{dataType}</if>
|
|
|
</where>
|
|
|
+ order by id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectInputFileList" parameterType="File" resultMap="FileResult">
|
|
@@ -39,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null and type != ''"> and `type` = #{type}</if>
|
|
|
<if test="dataType != null and dataType != ''"> and `data_type` = #{dataType}</if>
|
|
|
</where>
|
|
|
+ order by id desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectFileById" parameterType="Long" resultMap="FileResult">
|
|
@@ -78,7 +80,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">`name` = #{name},</if>
|
|
|
<if test="path != null">`path` = #{path},</if>
|
|
|
<if test="type != null">`type` = #{type},</if>
|
|
|
- <if test="dataType != null">`type` = #{dataType},</if>
|
|
|
+ <if test="dataType != null">`data_type` = #{dataType},</if>
|
|
|
<if test="createBy != null">create_by = #{createBy},</if>
|
|
|
<if test="createTime != null">create_time = #{createTime},</if>
|
|
|
<if test="updateBy != null">update_by = #{updateBy},</if>
|