wenhongquan 2 年之前
父節點
當前提交
0708c99cb1
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      ruoyi-system/src/main/resources/mapper/system/TblFacilitiesMapper.xml

+ 3 - 0
ruoyi-system/src/main/resources/mapper/system/TblFacilitiesMapper.xml

@@ -49,6 +49,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
                 </foreach>
             </if>
         </where>
+        <![CDATA[
+        order by  (case when (ext1->'$.tz_id' <> 0 and cast(ext1->'$.tz_id' as signed) <> 0) then cast(ext1->'$.tz_id' as signed) else 99999999 end )  asc
+         ]]>
     </select>
     
     <select id="selectTblFacilitiesById" parameterType="Long" resultMap="TblFacilitiesResult">