Commit 183972c7 by zwb

修改简历导入时的简历名称与html标签丢失

parent 6074890f
......@@ -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 类型字段
// 如果字符串缺少时间部分,补充时间部分
......
......@@ -19,7 +19,7 @@ import org.springframework.context.annotation.Bean;
public class FilterConfig {
@Bean
@ConditionalOnProperty(value = "xss.enabled", havingValue = "true")
@ConditionalOnProperty(value = "xss.enabled", havingValue = "false")
public FilterRegistrationBean<XssFilter> xssFilterRegistration() {
FilterRegistrationBean<XssFilter> registration = new FilterRegistrationBean<>();
registration.setDispatcherTypes(DispatcherType.REQUEST);
......
......@@ -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());
......
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 sign in to comment