Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gj_common
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weiguanying
gj_common
Commits
8bf262c5
Commit
8bf262c5
authored
Feb 28, 2023
by
weiguanying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
国结公共模块代码上传
parent
adf6bba2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
WordTemplateServiceImpl.java
.../brilliance/doc/service/impl/WordTemplateServiceImpl.java
+0
-3
No files found.
doc/src/main/java/cn/com/brilliance/doc/service/impl/WordTemplateServiceImpl.java
View file @
8bf262c5
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment