kongzy
2024-09-14 f0f00e9ba8a755e4317e029d73b69a92ad9f9df1
exam-admin/src/main/java/com/gkhy/exam/admin/controller/app/AppStudentStudyController.java
文件名从 exam-admin/src/main/java/com/gkhy/exam/admin/app/AppStudentStudyController.java 修改
@@ -1,6 +1,7 @@
package com.gkhy.exam.admin.app;
package com.gkhy.exam.admin.controller.app;
import com.gkhy.exam.common.annotation.RepeatSubmit;
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.system.domain.ExStudentStudy;
import com.gkhy.exam.system.service.ExStudentStudyService;
@@ -28,6 +29,7 @@
    @Autowired
    private ExStudentStudyService studentStudyService;
    @RepeatSubmit
    @PreAuthorize("hasAnyAuthority('train:exam:student')")
    @ApiOperation(value = "新增学习记录")
    @PostMapping
@@ -47,6 +49,7 @@
    })
    @PostMapping("/progress")
    public CommonResult progress(@RequestBody ExStudentStudy studentStudy){
        System.out.println("progress info:"+studentStudy.getId()+","+studentStudy.getPhaseId()+","+studentStudy.getPeriodId()+","+studentStudy.getStudentId());
        studentStudyService.progress(studentStudy);
        return CommonResult.success();
    }