|
|
@@ -30,14 +30,20 @@ import com.xjrsoft.module.base.entity.BaseGrade;
|
|
|
import com.xjrsoft.module.base.service.IBaseGradeService;
|
|
|
import com.xjrsoft.module.base.service.IBaseSemesterService;
|
|
|
import com.xjrsoft.module.databoard.vo.ItemCountVo;
|
|
|
+import com.xjrsoft.module.organization.dto.GetUserByParamDto;
|
|
|
+import com.xjrsoft.module.organization.entity.User;
|
|
|
+import com.xjrsoft.module.organization.service.IUserService;
|
|
|
import com.xjrsoft.module.student.dto.ChangeBandingStatusDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordPageDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordStatisticsDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportSignDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentTryReadingReportPageDto;
|
|
|
+import com.xjrsoft.module.student.entity.BaseNewStudent;
|
|
|
import com.xjrsoft.module.student.entity.EnrollmentPlan;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportPlan;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportRecord;
|
|
|
+import com.xjrsoft.module.student.service.IBaseNewStudentService;
|
|
|
+import com.xjrsoft.module.student.service.IBaseStudentSchoolRollService;
|
|
|
import com.xjrsoft.module.student.service.IEnrollmentPlanService;
|
|
|
import com.xjrsoft.module.student.service.IStudentReportPlanService;
|
|
|
import com.xjrsoft.module.student.service.IStudentReportRecordService;
|
|
|
@@ -53,6 +59,7 @@ import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
@@ -85,6 +92,9 @@ public class StudentTryReadingReportController {
|
|
|
private final IBaseGradeService gradeService;
|
|
|
private final IEnrollmentPlanService enrollmentPlanService;
|
|
|
private final IBandingTaskService bandingTaskService;
|
|
|
+ private final IUserService userService;
|
|
|
+ private final IBaseStudentSchoolRollService rollService;
|
|
|
+ private final IBaseNewStudentService newStudentService;
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/page")
|
|
|
@@ -126,6 +136,17 @@ public class StudentTryReadingReportController {
|
|
|
List<Long> list = new ArrayList<>();
|
|
|
list.add(record.getUserId());
|
|
|
classStudentService.removeStudent(list, reportPlan.getBandingTaskId());
|
|
|
+ BaseNewStudent newStudent = newStudentService.getById(record.getUserId());
|
|
|
+ if(newStudent != null){
|
|
|
+ User user = userService.getUserByParam(new GetUserByParamDto() {{
|
|
|
+ setCredentialNumber(newStudent.getCredentialNumber());
|
|
|
+ }});
|
|
|
+ if(user != null){
|
|
|
+ rollService.disableStudent(user.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
return RT.ok(true);
|
|
|
}
|
|
|
|
|
|
@@ -206,7 +227,7 @@ public class StudentTryReadingReportController {
|
|
|
@GetMapping(value = "/class-list")
|
|
|
@ApiOperation(value="查询班级信息")
|
|
|
@SaCheckPermission("studentreportrecord:detail")
|
|
|
- @XjrLog(value = "导出")
|
|
|
+ @XjrLog(value = "查询班级信息")
|
|
|
public RT<List<BandingTaskClassPageVo>> classList(@Valid StudentReportRecordPageDto dto){
|
|
|
BandingTaskClassPageDto classDto = new BandingTaskClassPageDto();
|
|
|
if(dto.getEnrollmentPlanId() == null){
|
|
|
@@ -244,8 +265,8 @@ public class StudentTryReadingReportController {
|
|
|
@GetMapping(value = "/class-statistics")
|
|
|
@ApiOperation(value="班级数据统计")
|
|
|
@SaCheckPermission("studentreportrecord:detail")
|
|
|
- @XjrLog(value = "导出")
|
|
|
- public RT<BandingTaskClassReportStatisticsVo> classStatistics(@Valid Long classId){
|
|
|
+ @XjrLog(value = "班级数据统计")
|
|
|
+ public RT<BandingTaskClassReportStatisticsVo> classStatistics(@RequestParam Long classId){
|
|
|
return RT.ok(bandingTaskClassService.getTryReadingReportClassStatistics(classId));
|
|
|
}
|
|
|
|