|
|
@ -10,11 +10,13 @@ import com.ruoyi.system.domain.paper.dto.request.PaperAnswerDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperListReqDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperListReqDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperQuQueryDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.request.PaperQuQueryDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
|
|
|
import com.ruoyi.system.domain.paper.dto.response.PaperListRespDTO;
|
|
|
|
|
|
|
|
import com.ruoyi.system.domain.repo.ElRepo;
|
|
|
|
import com.ruoyi.web.controller.manager.PaperManager;
|
|
|
|
import com.ruoyi.web.controller.manager.PaperManager;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
|
|
|
|
|
import org.springframework.ui.ModelMap;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
|
@ -35,11 +37,20 @@ import java.util.List;
|
|
|
|
@RequestMapping("/system/paper")
|
|
|
|
@RequestMapping("/system/paper")
|
|
|
|
public class PaperController extends BaseController {
|
|
|
|
public class PaperController extends BaseController {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private String prefix = "system/elExam/paper";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private PaperManager paperManager;
|
|
|
|
private PaperManager paperManager;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("去考试")
|
|
|
|
|
|
|
|
@GetMapping("/toPaper/{examId}")
|
|
|
|
|
|
|
|
public String toPaper(@PathVariable("examId") String examId, ModelMap mmap) {
|
|
|
|
|
|
|
|
mmap.put("examId", examId);
|
|
|
|
|
|
|
|
return prefix + "/paper";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("在线考试")
|
|
|
|
@ApiOperation("在线考试")
|
|
|
|
@PostMapping("/list")
|
|
|
|
@PostMapping("/list")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|