Quellcode durchsuchen

fixed update file

allen vor 1 Jahr
Ursprung
Commit
6fcec81d6b

+ 1 - 0
pdaaphm-admin/src/main/resources/mapper/algoManager/AlgorithmMapper.xml

@@ -44,6 +44,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 </foreach>
             </if>
         </where>
+        order by algo.id desc
     </select>
 
     <select id="selectAlgorithmById" parameterType="Long" resultMap="AlgorithmResult">

+ 3 - 1
pdaaphm-admin/src/main/resources/mapper/algoManager/FileMapper.xml

@@ -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>