Explorar el Código

科室按汉字排序

gaodm hace 5 años
padre
commit
39ca9494c3
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/main/resources/mapper/BasDeptInfoMapper.xml

+ 2 - 0
src/main/resources/mapper/BasDeptInfoMapper.xml

@@ -32,6 +32,7 @@
         <if test="inputStr !=null and inputStr != ''">
             AND (UPPER(t.spell) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%') OR UPPER(t.dept_name) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%'));
         </if>
+        ORDER BY t.dept_name ASC
     </select>
 
     <select id="getListUser" resultType="com.diagbot.dto.BasDeptInfoDTO"
@@ -52,5 +53,6 @@
         <if test="inputStr !=null and inputStr != ''">
             AND (UPPER(t.spell) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%') OR UPPER(t.dept_name) LIKE CONCAT('%', UPPER(TRIM(#{inputStr})),'%'));
         </if>
+        ORDER BY t.dept_name ASC
     </select>
 </mapper>