ソースを参照

学生基本信息接口调整

dzx 8 ヶ月 前
コミット
a545ae3954

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

@@ -84,6 +84,14 @@ public class StudentManagerController {
             }
         }
 
+        if(StrUtil.isNotEmpty(dto.getClassIdStr())){
+            List<Long> classIds = new ArrayList<>();
+            for (String classId : dto.getClassIdStr().split(",")) {
+                classIds.add(Long.parseLong(classId));
+            }
+            dto.setClassIds(classIds);
+        }
+
         IPage<BaseStudentUserPageVo> page = studentManagerService.getStudentPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
         for (BaseStudentUserPageVo record : page.getRecords()) {
             BaseStudentUser user = studentManagerService.getById(record.getId());

+ 3 - 1
src/main/java/com/xjrsoft/module/student/dto/BaseStudentUserPageDto.java

@@ -63,7 +63,6 @@ public class BaseStudentUserPageDto extends PageInput {
     @JsonIgnore
     private Long teacherId;
 
-
     @JsonIgnore
     private List<Long> classIds;
 
@@ -71,4 +70,7 @@ public class BaseStudentUserPageDto extends PageInput {
     @ApiModelProperty("身份证号")
     private List<String> credentialNumbers;
 
+    @ApiModelProperty("身份证号")
+    private String classIdStr;
+
 }