|
|
@@ -10,6 +10,7 @@ import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.module.base.entity.BaseClass;
|
|
|
+import com.xjrsoft.module.base.service.IBaseClassService;
|
|
|
import com.xjrsoft.module.organization.entity.User;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentSchoolRoll;
|
|
|
import com.xjrsoft.module.xycxedu.dto.AddExamSubjectScoreEnterDto;
|
|
|
@@ -39,6 +40,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
import java.io.IOException;
|
|
|
+import java.util.Arrays;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
|
@@ -56,6 +58,8 @@ public class ExamSubjectScoreEnterController {
|
|
|
|
|
|
private final IExamSubjectScoreEnterService enterService;
|
|
|
|
|
|
+ private final IBaseClassService classService;
|
|
|
+
|
|
|
@GetMapping(value = "/page")
|
|
|
@ApiOperation(value="成绩录入列表(分页)")
|
|
|
@SaCheckPermission("examsubjectscoreenter:detail")
|
|
|
@@ -74,6 +78,11 @@ public class ExamSubjectScoreEnterController {
|
|
|
if (examSubjectScoreEnter == null) {
|
|
|
return RT.error("找不到此数据!");
|
|
|
}
|
|
|
+ List<String> classIds = Arrays.asList(examSubjectScoreEnter.getClassIds().split(","));
|
|
|
+ List<BaseClass> classList = classService.listByIds(classIds);
|
|
|
+
|
|
|
+ examSubjectScoreEnter.setClassList(classList);
|
|
|
+
|
|
|
return RT.ok(examSubjectScoreEnter);
|
|
|
}
|
|
|
|