Browse Source

新生信息维护,增加成绩排序功能

dzx 1 year ago
parent
commit
348d0b49a7
1 changed files with 8 additions and 0 deletions
  1. 8 0
      src/main/resources/mapper/student/BaseNewStudentMapper.xml

+ 8 - 0
src/main/resources/mapper/student/BaseNewStudentMapper.xml

@@ -61,6 +61,14 @@
                 AND t4.enroll_type = #{dto.treeId}
             </if>
         </if>
+        <if test="dto.field != null and dto.field != '' and dto.field == 'score'">
+            <if test="dto.order == 'descend'">
+                order by t1.score desc
+            </if>
+            <if test="dto.order == 'ascend'">
+                order by t1.score asc
+            </if>
+        </if>
     </select>
     <select id="getEnrollmentPlanList" resultType="com.xjrsoft.module.student.vo.EnrollmentPlanTreeVo">
         SELECT t1.enroll_type, t2.name AS enroll_type_cn,t3.name AS grade_name, t3.id as grade_id,t1.id FROM enrollment_plan t1