|
|
|
@ -10,9 +10,12 @@ 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.PropKit;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Page;
|
|
|
|
|
import com.jfinal.plugin.activerecord.Record;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.net.URISyntaxException;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
|
|
public class ZjcqController extends Controller {
|
|
|
|
@ -73,4 +76,20 @@ public class ZjcqController extends Controller {
|
|
|
|
|
Page<Record> list = zm.listZjcq(page, limit);
|
|
|
|
|
renderJson(CommonUtil.renderJsonForLayUI(list));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 功能:导入Docx
|
|
|
|
|
*
|
|
|
|
|
* @param ys_id
|
|
|
|
|
*/
|
|
|
|
|
@Before({POST.class})
|
|
|
|
|
@IsLoginInterface({})
|
|
|
|
|
public void exportDocx(int ys_id) throws URISyntaxException {
|
|
|
|
|
//模板
|
|
|
|
|
String docxPath = CommonUtil.getClassPath() + "Doc";
|
|
|
|
|
String fileTemplatePath = docxPath + "ZhuanJiaChouQu.docx";
|
|
|
|
|
//TODO
|
|
|
|
|
String filePath = fileTemplatePath;
|
|
|
|
|
renderFile(new File(filePath), "专家抽取结果.docx");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|