|
|
|
@ -1,6 +1,5 @@
|
|
|
|
|
package com.dsideal.FengHuang.Exam.Controller;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.lang.Validator;
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
import com.dsideal.FengHuang.Exam.Model.ExamModel;
|
|
|
|
|
import com.dsideal.FengHuang.Interceptor.EmptyInterface;
|
|
|
|
@ -11,7 +10,6 @@ import com.jfinal.core.Controller;
|
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
|
import com.jfinal.ext.interceptor.POST;
|
|
|
|
|
import com.jfinal.kit.Kv;
|
|
|
|
|
import com.jfinal.kit.PathKit;
|
|
|
|
|
import com.jfinal.kit.PropKit;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
@ -24,6 +22,20 @@ public class ExamController extends Controller {
|
|
|
|
|
//实例化model
|
|
|
|
|
ExamModel em = new ExamModel();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:清库
|
|
|
|
|
*/
|
|
|
|
|
// http://10.10.21.20:9000/FengHuang/exam/ClearDataBase
|
|
|
|
|
public void ClearDataBase() {
|
|
|
|
|
//清库脚本
|
|
|
|
|
PgSqlUtil.Truncate("t_exam_person");
|
|
|
|
|
PgSqlUtil.Truncate("t_exam_record");
|
|
|
|
|
PgSqlUtil.Truncate("t_exam_question");
|
|
|
|
|
Kv kv = Kv.by("success", true);
|
|
|
|
|
kv.set("message", "清库成功!");
|
|
|
|
|
renderJson(kv);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:增加考试人员
|
|
|
|
|
*
|
|
|
|
|