|
|
|
@ -1,10 +1,13 @@
|
|
|
|
|
package com.ruoyi.web.controller.system.exam;
|
|
|
|
|
|
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
|
import com.ruoyi.common.enums.BusinessType;
|
|
|
|
|
import com.ruoyi.system.domain.TdExamnum;
|
|
|
|
|
import com.ruoyi.system.domain.TdQuestion;
|
|
|
|
|
import com.ruoyi.system.service.ITdExamnumService;
|
|
|
|
|
import com.ruoyi.system.service.ITdQuestionService;
|
|
|
|
|
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
@ -29,6 +32,8 @@ public class TdExamController extends BaseController{
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITdQuestionService tdQuestionService;
|
|
|
|
|
@Autowired
|
|
|
|
|
private ITdExamnumService tdExamnumService;
|
|
|
|
|
|
|
|
|
|
@RequiresPermissions("system:exam:view")
|
|
|
|
|
@GetMapping()
|
|
|
|
@ -39,6 +44,18 @@ public class TdExamController extends BaseController{
|
|
|
|
|
return prefix + "/index";
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 保存人员考试结果
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "保密考试", businessType = BusinessType.EXAM)
|
|
|
|
|
@PostMapping("/add")
|
|
|
|
|
@ResponseBody
|
|
|
|
|
public AjaxResult addSave(TdExamnum tdExamnum)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(tdExamnumService.insertTdExamnum(tdExamnum));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询题库列表返回
|
|
|
|
|
*/
|
|
|
|
@ -55,12 +72,8 @@ public class TdExamController extends BaseController{
|
|
|
|
|
/**
|
|
|
|
|
* 访问考试界面,点击开始答题,重定向到exam页面
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "涉密考试", businessType = BusinessType.EXAM)
|
|
|
|
|
@GetMapping("/edit")
|
|
|
|
|
public String index(){
|
|
|
|
|
return prefix + "/exam";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|