瀏覽代碼

附件上传新增排序字段

吕宣芝 1 年之前
父節點
當前提交
7a2346f680
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      src/main/resources/mapper/system/attach/CenterdataTAttachMapper.xml

+ 3 - 2
src/main/resources/mapper/system/attach/CenterdataTAttachMapper.xml

@@ -143,7 +143,8 @@
         bus_indx,
         bus_source,
         file_name,
-        attach_sorts,
+        file_type,
+        attach_sorts
         )values
         <foreach collection="list" item="item" index="index" open="" close="" separator=",">
             (
@@ -194,6 +195,6 @@
     </delete>
 
     <select id="selectDataAttachPathByBusId" resultType="String" parameterType="String">
-        select attach_path, attach_sorts from centerdata_t_attach where bus_id = #{busId}
+        select attach_path from centerdata_t_attach where bus_id = #{busId} order by attach_sorts
     </select>
 </mapper>