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
183972c7
authored
Dec 12, 2025
by
zwb
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
修改简历导入时的简历名称与html标签丢失
parent
6074890f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
3 deletions
employmentBusiness-pc-common/employmentBusiness-pc-common-core/src/main/java/org/dromara/common/core/utils/JsonToObjectMapper.java
employmentBusiness-pc-common/employmentBusiness-pc-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
employmentBusiness-pc-common/employmentBusiness-pc-common-core/src/main/java/org/dromara/common/core/utils/JsonToObjectMapper.java
View file @
183972c7
...
...
@@ -28,6 +28,12 @@ public class JsonToObjectMapper {
if
(
value
!=
null
)
{
field
.
setAccessible
(
true
);
// 获取原始字符串值(不转义)
String
stringValue
=
json
.
getString
(
jsonKey
);
if
(
field
.
getType
()
==
String
.
class
)
{
field
.
set
(
instance
,
stringValue
);
}
if
(
field
.
getType
()
==
LocalDateTime
.
class
&&
!
format
.
isEmpty
())
{
// 格式化 LocalDateTime 类型字段
// 如果字符串缺少时间部分,补充时间部分
...
...
employmentBusiness-pc-common/employmentBusiness-pc-common-web/src/main/java/org/dromara/common/web/config/FilterConfig.java
View file @
183972c7
...
...
@@ -19,7 +19,7 @@ import org.springframework.context.annotation.Bean;
public
class
FilterConfig
{
@Bean
@ConditionalOnProperty
(
value
=
"xss.enabled"
,
havingValue
=
"
tru
e"
)
@ConditionalOnProperty
(
value
=
"xss.enabled"
,
havingValue
=
"
fals
e"
)
public
FilterRegistrationBean
<
XssFilter
>
xssFilterRegistration
()
{
FilterRegistrationBean
<
XssFilter
>
registration
=
new
FilterRegistrationBean
<>();
registration
.
setDispatcherTypes
(
DispatcherType
.
REQUEST
);
...
...
employmentBusiness-pc-modules/employmentBusiness-pc-system/src/main/java/com/bkty/system/service/resume/impl/NewEditionResumeServiceImpl.java
View file @
183972c7
...
...
@@ -186,8 +186,9 @@ public class NewEditionResumeServiceImpl implements NewEditionResumeService {
this
.
resumeCacheService
.
refreshResumeListCache
(
caches
,
null
==
dto
.
getUserId
()
?
SecurityUtils
.
getUser
().
getId
()
:
dto
.
getUserId
());
}
List
<
String
>
list
=
caches
.
stream
().
map
(
ResumeListItemCache:
:
getResumeName
).
filter
(
name
->
name
!=
null
&&
!
name
.
trim
().
isEmpty
()).
toList
();
resumeNew
.
setResumeName
(
generate
(
resumeNew
.
getResumeName
(),
list
));
if
(!
CollectionUtil
.
isEmpty
(
list
)){
resumeNew
.
setResumeName
(
generate
(
resumeNew
.
getResumeName
(),
list
));
}
resumeNew
.
setTemplateId
(
"1"
);
resumeNew
.
setTemplateName
(
"tpl1.ejs"
);
resumeNew
.
setUserId
(
frontUser
.
getId
());
...
...
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