|
@@ -22,6 +22,7 @@ import com.xjrsoft.module.databoard.vo.ItemCountVo;
|
|
|
import com.xjrsoft.module.student.dto.AddStudentReportRecordDto;
|
|
|
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.UpdateStudentReportRecordDto;
|
|
|
import com.xjrsoft.module.student.entity.StudentReportRecord;
|
|
|
import com.xjrsoft.module.student.service.IStudentReportRecordService;
|
|
@@ -320,5 +321,61 @@ public class StudentReportRecordController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ @GetMapping(value = "/plan-page")
|
|
|
+ @ApiOperation(value="学生报到记录表列表(分页)")
|
|
|
+ @SaCheckPermission("studentreportrecord:detail")
|
|
|
+ public RT<PageOutput<StudentReportRecordPageVo>> planPage(@Valid StudentReportRecordPageDto dto){
|
|
|
+
|
|
|
+ LambdaQueryWrapper<StudentReportRecord> queryWrapper = new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper
|
|
|
+ .orderByDesc(StudentReportRecord::getId)
|
|
|
+ .select(StudentReportRecord.class,x -> VoToColumnUtil.fieldsToColumns(StudentReportRecordPageVo.class).contains(x.getProperty()));
|
|
|
+ IPage<StudentReportRecord> page = studentReportRecordService.page(ConventPage.getPage(dto), queryWrapper);
|
|
|
+ PageOutput<StudentReportRecordPageVo> pageOutput = ConventPage.getPageOutput(page, StudentReportRecordPageVo.class);
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/sign")
|
|
|
+ @ApiOperation(value="学生报到")
|
|
|
+ @SaCheckPermission("studentreportrecord:detail")
|
|
|
+ public RT<Boolean> sign(@Valid StudentReportSignDto dto){
|
|
|
+
|
|
|
+ StudentReportRecord record = studentReportRecordService.getById(dto.getId());
|
|
|
+
|
|
|
+ return RT.ok(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/all-sign")
|
|
|
+ @ApiOperation(value="变更已报到")
|
|
|
+ @SaCheckPermission("studentreportrecord:detail")
|
|
|
+ public RT<Boolean> allSign(@Valid StudentReportSignDto dto){
|
|
|
+
|
|
|
+ StudentReportRecord record = studentReportRecordService.getById(dto.getId());
|
|
|
+
|
|
|
+ return RT.ok(true);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @PostMapping(value = "/update-stduyStatus")
|
|
|
+ @ApiOperation(value="切换就读方式")
|
|
|
+ @SaCheckPermission("studentreportrecord:detail")
|
|
|
+ public RT<Boolean> updateStduyStatus(@Valid StudentReportSignDto dto){
|
|
|
+
|
|
|
+ StudentReportRecord record = studentReportRecordService.getById(dto.getId());
|
|
|
+
|
|
|
+ return RT.ok(true);
|
|
|
+ }
|
|
|
+
|
|
|
+ @PostMapping(value = "/export-querty")
|
|
|
+ @ApiOperation(value="导出")
|
|
|
+ @SaCheckPermission("studentreportrecord:detail")
|
|
|
+ public RT<Boolean> exportQuerty(@Valid StudentReportSignDto dto){
|
|
|
+
|
|
|
+ StudentReportRecord record = studentReportRecordService.getById(dto.getId());
|
|
|
+
|
|
|
+ return RT.ok(true);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
|
|
|
}
|