|
@@ -0,0 +1,46 @@
|
|
|
+package com.ym.mec.student.controller;
|
|
|
+
|
|
|
+
|
|
|
+import com.ym.mec.biz.dal.dto.LessonExaminationResultDto;
|
|
|
+import com.ym.mec.biz.dal.dto.LessonExaminationResultDto1;
|
|
|
+import com.ym.mec.biz.dal.page.LessonExaminationQueryInfo;
|
|
|
+import com.ym.mec.biz.dal.page.LessonExaminationQueryInfo1;
|
|
|
+import com.ym.mec.biz.service.LessonExaminationService;
|
|
|
+import com.ym.mec.biz.service.SysUserService;
|
|
|
+import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
+import com.ym.mec.common.page.PageInfo;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+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.RestController;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 进度评测表(LessonExamination)表控制层
|
|
|
+ *
|
|
|
+ * @author zx
|
|
|
+ * @since 2023-04-03 18:20:19
|
|
|
+ */
|
|
|
+@Api(tags = "进度评测表")
|
|
|
+@RestController
|
|
|
+@RequestMapping("/lessonExamination")
|
|
|
+public class LessonExaminationController extends BaseController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private LessonExaminationService lessonExaminationService;
|
|
|
+ @Resource
|
|
|
+ private SysUserService sysUserService;
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取作业列表")
|
|
|
+ @PostMapping("queryPage")
|
|
|
+ public HttpResponseResult<PageInfo<LessonExaminationResultDto1>> queryPage(@RequestBody LessonExaminationQueryInfo1 queryInfo) {
|
|
|
+ queryInfo.setStudentId(sysUserService.getUserId());
|
|
|
+ return succeed(lessonExaminationService.queryPageByStudent(queryInfo));
|
|
|
+ }
|
|
|
+
|
|
|
+}
|
|
|
+
|