Kaynağa Gözat

科室按汉字排序

gaodm 5 yıl önce
ebeveyn
işleme
39ca9494c3

+ 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>