Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
张文彪
/
employmentBusinessPc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f2f1daef
authored
Dec 17, 2025
by
zwb
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改简历生成html文件添加字体参数
parent
bd0440f6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/utils/FileProcessor.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
View file @
f2f1daef
...
...
@@ -727,8 +727,8 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
// 更新 base_info
objectMap
.
put
(
"base"
,
jsonObject
);
}
// objectMap.put("fontSize",fontSize!=null?fontSize:"14px"
);
// objectMap.put("lineHeight",lineHeight!=null?lineHeight:"1.7"
);
objectMap
.
put
(
"fontSize"
,
fontSize
);
objectMap
.
put
(
"lineHeight"
,
lineHeight
);
String
jsonString
=
JSON
.
toJSONString
(
objectMap
);
if
(
objectMap
.
get
(
"base"
)
!=
null
)
{
...
...
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/utils/FileProcessor.java
View file @
f2f1daef
...
...
@@ -45,8 +45,17 @@ public class FileProcessor {
String
line
;
while
((
line
=
reader
.
readLine
())
!=
null
)
{
// 替换字符串
String
replaceLine
=
line
.
replace
(
oldData
,
newData
).
replace
(
oldFontSize
,
newFontSize
).
replace
(
oldLineHeight
,
newLineHeight
);
writer
.
write
(
replaceLine
);
String
processedLine
=
line
;
if
(!
oldData
.
isEmpty
()
&&
!
newData
.
isEmpty
())
{
processedLine
=
processedLine
.
replace
(
oldData
,
newData
);
}
if
(!
oldFontSize
.
isEmpty
()
&&
!
newFontSize
.
isEmpty
())
{
processedLine
=
processedLine
.
replace
(
oldFontSize
,
newFontSize
);
}
if
(!
oldLineHeight
.
isEmpty
()
&&
!
newLineHeight
.
isEmpty
())
{
processedLine
=
processedLine
.
replace
(
oldLineHeight
,
newLineHeight
);
}
writer
.
write
(
processedLine
);
writer
.
newLine
();
// 写入换行符
}
System
.
out
.
println
(
"文件处理完成,已生成新的HTML文件:"
+
targetFilePath
);
...
...
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