|
@@ -1,8 +1,9 @@
|
|
package com.qmth.eds.api;
|
|
package com.qmth.eds.api;
|
|
|
|
|
|
|
|
|
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
import com.qmth.boot.api.constant.ApiConstant;
|
|
-import com.qmth.eds.bean.dto.syssetting.SettingObject;
|
|
|
|
|
|
+import com.qmth.eds.bean.result.AssignResultPreviewResult;
|
|
import com.qmth.eds.bean.result.EditResult;
|
|
import com.qmth.eds.bean.result.EditResult;
|
|
import com.qmth.eds.common.contant.SystemConstant;
|
|
import com.qmth.eds.common.contant.SystemConstant;
|
|
import com.qmth.eds.common.entity.ExamAssign;
|
|
import com.qmth.eds.common.entity.ExamAssign;
|
|
@@ -14,12 +15,14 @@ import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponse;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import io.swagger.annotations.ApiResponses;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
-import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
import javax.validation.constraints.Max;
|
|
import javax.validation.constraints.Max;
|
|
import javax.validation.constraints.Min;
|
|
import javax.validation.constraints.Min;
|
|
-import java.util.List;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* <p>
|
|
* <p>
|
|
@@ -67,15 +70,13 @@ public class ExamAssignController {
|
|
|
|
|
|
@ApiOperation(value = "计算结果查询")
|
|
@ApiOperation(value = "计算结果查询")
|
|
@PostMapping("/result")
|
|
@PostMapping("/result")
|
|
- @ApiResponses({@ApiResponse(code = 200, message = "保存/更新成功", response = EditResult.class)})
|
|
|
|
- public Result result(@RequestParam(value = "semesterId", required = false) Long semesterId,
|
|
|
|
- @RequestParam(value = "examTypeId", required = false) Long examTypeId,
|
|
|
|
- @RequestParam(value = "courseCode", required = false) String courseCode,
|
|
|
|
- @RequestParam(value = "courseName", required = false) String courseName,
|
|
|
|
- @RequestParam(value = "formula", required = false) String formula,
|
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
|
- @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
|
- return ResultUtil.ok(examAssignService.result(semesterId, examTypeId, courseCode, courseName, formula, pageNumber, pageSize));
|
|
|
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "返回信息", response = AssignResultPreviewResult.class)})
|
|
|
|
+ public Result assignResultPreview(@RequestParam(value = "开课学院", required = false) String collegeName,
|
|
|
|
+ @RequestParam(value = "班级id", required = false) String clazzId,
|
|
|
|
+ @RequestParam(value = "任课老师工号", required = false) String teacherCode,
|
|
|
|
+ @RequestParam @Min(SystemConstant.PAGE_NUMBER_MIN) Integer pageNumber,
|
|
|
|
+ @RequestParam @Min(SystemConstant.PAGE_SIZE_MIN) @Max(SystemConstant.PAGE_SIZE_MAX) Integer pageSize) {
|
|
|
|
+ return ResultUtil.ok(examAssignService.assignResultPreview(new Page<>(pageNumber, pageSize), collegeName, clazzId, teacherCode));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "计算结果对比")
|
|
@ApiOperation(value = "计算结果对比")
|