diff --git a/src/main/java/com/dsideal/QingLong/Zjcq/Controller/ZjcqController.java b/src/main/java/com/dsideal/QingLong/Zjcq/Controller/ZjcqController.java index a3b26ae6..287c6c23 100644 --- a/src/main/java/com/dsideal/QingLong/Zjcq/Controller/ZjcqController.java +++ b/src/main/java/com/dsideal/QingLong/Zjcq/Controller/ZjcqController.java @@ -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 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"); + } } diff --git a/src/main/resource/Doc/ZhuanJiaChouQu.docx b/src/main/resource/Doc/ZhuanJiaChouQu.docx new file mode 100644 index 00000000..768cd5f7 Binary files /dev/null and b/src/main/resource/Doc/ZhuanJiaChouQu.docx differ