Преглед на файлове

水厂机构排序 按照排序字段升序排列

王苗苗 преди 1 седмица
родител
ревизия
fcfb56f776
променени са 2 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. BIN
      ruoyi-admin/.DS_Store
  2. 2 1
      ruoyi-system/src/main/resources/mapper/business/TOrganizationMapper.xml

BIN
ruoyi-admin/.DS_Store


+ 2 - 1
ruoyi-system/src/main/resources/mapper/business/TOrganizationMapper.xml

@@ -55,7 +55,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="latitude != null  and latitude != ''"> and latitude = #{latitude}</if>
             <if test="revision != null "> and revision = #{revision}</if>
         </where>
-        and del_flag = 0 order by id desc
+        <!-- and del_flag = 0 order by id desc -->
+        and del_flag = 0 order by sort asc, id desc
     </select>
     
     <select id="selectTOrganizationById" parameterType="Long" resultMap="TOrganizationResult">