dzx 4 mesiacov pred
rodič
commit
43c5363fbd

+ 3 - 2
src/main/java/com/xjrsoft/module/student/controller/StudentManagerController.java

@@ -102,8 +102,9 @@ 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]);
+                String[] split = dto.getTreeId().split("_");
+                dto.setTreeId(split[0]);
+                dto.setQueryId(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 and t3.major_set_id = #{dto.treeId}
+                and t4.grade_id = #{dto.queryId} and t3.major_set_id = #{dto.treeId}
             </if>
             <if test="dto.treeType == 4">
                 and t4.id = #{dto.queryId}