Browse Source

bug修复

dzx 4 months ago
parent
commit
97e93294e6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/resources/mapper/banding/BandingTaskClassMapper.xml

+ 1 - 1
src/main/resources/mapper/banding/BandingTaskClassMapper.xml

@@ -101,6 +101,6 @@
     </select>
     </select>
 
 
     <select id="getListOrderByAsc" resultType="com.xjrsoft.module.banding.entity.BandingTaskClass">
     <select id="getListOrderByAsc" resultType="com.xjrsoft.module.banding.entity.BandingTaskClass">
-        SELECT * FROM banding_task_class WHERE delete_mark = 0 and banding_task_id = #{id} ORDER BY IF(ISNULL(sort_code),1,0)  ASC
+        SELECT * FROM banding_task_class WHERE delete_mark = 0 and banding_task_id = #{id} ORDER BY sort_code IS NULL, sort_code ASC
     </select>
     </select>
 </mapper>
 </mapper>