Commit 8bf262c5 by weiguanying

国结公共模块代码上传

parent adf6bba2
...@@ -42,14 +42,11 @@ public class WordTemplateServiceImpl implements WordTemplateService { ...@@ -42,14 +42,11 @@ public class WordTemplateServiceImpl implements WordTemplateService {
//创建xdocreport上下文对象,用于存放具体数据 //创建xdocreport上下文对象,用于存放具体数据
IContext context = report.createContext(); IContext context = report.createContext();
//创建要替换的文本变量 //创建要替换的文本变量
context.put("name", "李梅"); context.put("name", "李梅");
context.put("age", "20"); context.put("age", "20");
context.put("school", "武汉大学"); context.put("school", "武汉大学");
String FileId = UUID.randomUUID().toString(); String FileId = UUID.randomUUID().toString();
String newFileName = FileId + "-" + templateName; String newFileName = FileId + "-" + templateName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment