Browse Source

学生报到接口调整

dzx 10 tháng trước cách đây
mục cha
commit
a122bdc8a9

+ 3 - 3
src/main/java/com/xjrsoft/module/student/controller/StudentReportRecordController.java

@@ -392,14 +392,14 @@ public class StudentReportRecordController {
     @PostMapping(value = "/update-stduyStatus")
     @ApiOperation(value="切换就读方式")
     @SaCheckPermission("studentreportrecord:detail")
-    public RT<Boolean> updateStduyStatus(@Valid StudentReportSignDto dto){
+    public RT<Boolean> updateStduyStatus(@Valid @RequestBody StudentReportSignDto dto){
         return RT.ok(studentReportRecordService.updateStduyStatus(dto));
     }
 
-    @PostMapping(value = "/export-querty")
+    @PostMapping(value = "/export-query")
     @ApiOperation(value="导出")
     @SaCheckPermission("studentreportrecord:detail")
-    public ResponseEntity<byte[]> exportQuerty(@Valid StudentReportRecordPageDto dto){
+    public ResponseEntity<byte[]> exportQuerty(@Valid @RequestBody StudentReportRecordPageDto dto){
         List<StudentReportRecordPlanPageVo> planPageList = studentReportRecordService.getPlanPageList(dto);
         ByteArrayOutputStream bot = new ByteArrayOutputStream();
         EasyExcel.write(bot, StudentReportRecordPlanPageVo.class).automaticMergeHead(false).excelType(ExcelTypeEnum.XLSX).sheet().doWrite(planPageList);