修改保密考试接口bug

master
20918 6 months ago
parent b74b6c584e
commit dd155b555b

@ -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";
}
}

@ -480,7 +480,7 @@
<script src="../static/ajax/libs/layer/layer.min.js" th:src="@{/ajax/libs/layer/layer.min.js}"></script>
<script th:inline="javascript">
var prefix = ctx + "system/question";
var save = ctx + "system/examnum";
var save = ctx + "system/exam";
// 获取当前页面的URL
var urlParams = new URLSearchParams(window.location.search);
// 获取名为 param1 的参数值

@ -28,6 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="dept != null and dept != ''"> and dept = #{dept}</if>
<if test="type != null and type != ''"> and type = #{type}</if>
</where>
order by startTime desc
</select>
<select id="selectTdExamnumById" parameterType="Long" resultMap="TdExamnumResult">

Loading…
Cancel
Save