kongzy
2024-07-05 14821e28286d773ad5ff2c13510e39c5eb117daf
exam-admin/src/main/java/com/gkhy/exam/admin/web/ExStudentStudyController.java
@@ -2,7 +2,9 @@
import com.gkhy.exam.common.annotation.Log;
import com.gkhy.exam.common.annotation.RepeatSubmit;
import com.gkhy.exam.common.api.CommonResult;
import com.gkhy.exam.common.constant.UserConstant;
import com.gkhy.exam.common.enums.BusinessType;
import com.gkhy.exam.system.service.ExStudentStudyService;
import io.swagger.annotations.Api;
@@ -20,7 +22,7 @@
 * @author kzy
 * @since 2024-06-06 13:53:17
 */
@Api(tags = "学员学习记录前端控制器")
@Api(tags = "学员课程学习记录前端控制器")
@RestController
@RequestMapping("/student-study")
public class ExStudentStudyController {
@@ -34,9 +36,11 @@
    })
    @GetMapping("/getStudentStudy")
    public CommonResult getStudentStudy(@RequestParam(required = true) Long phaseId, @RequestParam(required = true)Long studentId){
        return CommonResult.success(studentStudyService.selectStudyByPhaseAndStundentId(phaseId,studentId));
        return CommonResult.success(studentStudyService.selectStudyByPhaseAndStundentId(phaseId,studentId, UserConstant.ENABLE));
    }
    @RepeatSubmit
    @Log(title = "课程学习记录管理", businessType = BusinessType.DELETE)
    @ApiOperation(value = "删除学习记录")
    @DeleteMapping(value = { "/{studyId}" })