|
|
@ -5,10 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
|
import com.dsideal.FengHuang.Exam.Model.ExamModel;
|
|
|
|
import com.dsideal.FengHuang.Exam.Model.ExamModel;
|
|
|
|
import com.dsideal.FengHuang.Interceptor.EmptyInterface;
|
|
|
|
import com.dsideal.FengHuang.Interceptor.EmptyInterface;
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsNumericInterface;
|
|
|
|
import com.dsideal.FengHuang.Interceptor.IsNumericInterface;
|
|
|
|
import com.dsideal.FengHuang.Util.CommonUtil;
|
|
|
|
import com.dsideal.FengHuang.Util.*;
|
|
|
|
import com.dsideal.FengHuang.Util.CookieUtil;
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.Util.ExcelCommonUtil;
|
|
|
|
|
|
|
|
import com.dsideal.FengHuang.Util.FileUtil;
|
|
|
|
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
import com.jfinal.aop.Before;
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
import com.jfinal.core.Controller;
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
|
import com.jfinal.ext.interceptor.GET;
|
|
|
@ -205,7 +202,7 @@ public class ExamController extends Controller {
|
|
|
|
public void exportExcel() {
|
|
|
|
public void exportExcel() {
|
|
|
|
Page<Record> list = em.getPageSummary(1, 10000);
|
|
|
|
Page<Record> list = em.getPageSummary(1, 10000);
|
|
|
|
//模板文件
|
|
|
|
//模板文件
|
|
|
|
String excelPath = PathKit.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
String excelPath = PathUtil.getRootClassPath() + PropKit.get("excelExportTemplatePathSuffix").replace("\\", "/");
|
|
|
|
String filePath = excelPath + "exam.json";
|
|
|
|
String filePath = excelPath + "exam.json";
|
|
|
|
//转成 json对象
|
|
|
|
//转成 json对象
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|
JSONObject jo = FileUtil.readJsonFile(filePath);
|
|
|
|