|
|
@@ -11,15 +11,14 @@ import com.xjrsoft.common.enums.RoleCodeEnum;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
|
import com.xjrsoft.common.page.PageOutput;
|
|
|
-import com.xjrsoft.module.banding.entity.BandingRule;
|
|
|
import com.xjrsoft.module.banding.service.IBandingTaskClassStudentService;
|
|
|
-import com.xjrsoft.module.banding.vo.BandingRuleVo;
|
|
|
import com.xjrsoft.module.student.dto.ChangeBandingStatusDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportRecordPageDto;
|
|
|
import com.xjrsoft.module.student.dto.StudentReportSignDto;
|
|
|
+import com.xjrsoft.module.student.entity.StudentReportPlan;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportRecord;
|
|
|
+import com.xjrsoft.module.student.service.IStudentReportPlanService;
|
|
|
import com.xjrsoft.module.student.service.IStudentReportRecordService;
|
|
|
-import com.xjrsoft.module.student.vo.StudentReportPlanVo;
|
|
|
import com.xjrsoft.module.student.vo.StudentReportRecordExcelVo;
|
|
|
import com.xjrsoft.module.student.vo.StudentReportRecordPlanPageVo;
|
|
|
import io.swagger.annotations.Api;
|
|
|
@@ -30,7 +29,6 @@ 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;
|
|
|
@@ -53,6 +51,7 @@ public class StudentTryReadingReportController {
|
|
|
|
|
|
private final IStudentReportRecordService recordService;
|
|
|
private final IBandingTaskClassStudentService classStudentService;
|
|
|
+ private final IStudentReportPlanService reportPlanService;
|
|
|
|
|
|
|
|
|
@GetMapping(value = "/page")
|
|
|
@@ -75,9 +74,10 @@ public class StudentTryReadingReportController {
|
|
|
@XjrLog(value="非本班学生")
|
|
|
public RT<Boolean> clearClass(@Valid @RequestBody ChangeBandingStatusDto dto){
|
|
|
StudentReportRecord record = recordService.getById(dto.getId());
|
|
|
+ StudentReportPlan reportPlan = reportPlanService.getById(record.getStudentReportPlanId());
|
|
|
List<Long> list = new ArrayList<>();
|
|
|
list.add(record.getUserId());
|
|
|
- classStudentService.removeStudent(list, record.getBandingTaskId());
|
|
|
+ classStudentService.removeStudent(list, reportPlan.getBandingTaskId());
|
|
|
return RT.ok(true);
|
|
|
}
|
|
|
|