Jelajahi Sumber

学生查询调整

dzx 4 bulan lalu
induk
melakukan
613987c111

+ 1 - 0
src/main/java/com/xjrsoft/module/student/controller/StudentManagerController.java

@@ -102,6 +102,7 @@ public class StudentManagerController {
         if(dto.getTreeType() != null && dto.getTreeId() != null){
             dto.setQueryId(dto.getTreeId());
             if(dto.getTreeType() == 3){
+                dto.setTreeId(dto.getTreeId().split("_")[0]);
                 dto.setQueryId(dto.getTreeId().split("_")[1]);
             }
         }

+ 1 - 1
src/main/resources/mapper/student/BaseStudentMapper.xml

@@ -84,7 +84,7 @@
                 and t3.major_set_id = #{dto.queryId}
             </if>
             <if test="dto.treeType == 3">
-                and t4.grade_id = #{dto.queryId}
+                and t4.grade_id = #{dto.queryId} and and t3.major_set_id = #{dto.treeId}
             </if>
             <if test="dto.treeType == 4">
                 and t4.id = #{dto.queryId}