简历字段添加
This commit is contained in:
@@ -106,6 +106,12 @@ public class HotakeCvInfoServiceImpl extends BaseServiceImpl implements IHotakeC
|
||||
{
|
||||
fill(FillTypeEnum.INSERT.getCode(),hotakeCvInfo);
|
||||
hotakeCvInfoMapper.insertHotakeCvInfo(hotakeCvInfo);
|
||||
//获取文件后缀
|
||||
String fileSuffix = FileUtil.getSuffix(hotakeCvInfo.getCvUrl());
|
||||
if(StrUtil.isNotEmpty(fileSuffix)){
|
||||
fileSuffix = fileSuffix.toLowerCase();
|
||||
}
|
||||
hotakeCvInfo.setCvFileSuffix(fileSuffix);
|
||||
//对简历数据进行处理生成相应的题库数据
|
||||
handleHotakeCvInfo(hotakeCvInfo);
|
||||
return hotakeCvInfo;
|
||||
@@ -124,12 +130,8 @@ public class HotakeCvInfoServiceImpl extends BaseServiceImpl implements IHotakeC
|
||||
.bucket(MinioBucketNameEnum.CV.getCode())
|
||||
.object(hotakeCvInfo.getCvUrl())
|
||||
.build());
|
||||
//获取文件后缀
|
||||
String fileSuffix = FileUtil.getSuffix(hotakeCvInfo.getCvUrl());
|
||||
if(StrUtil.isNotEmpty(fileSuffix)){
|
||||
fileSuffix = fileSuffix.toLowerCase();
|
||||
}
|
||||
String contents = FileContentUtil.readFileContent(inputStream,fileSuffix);
|
||||
|
||||
String contents = FileContentUtil.readFileContent(inputStream,hotakeCvInfo.getCvFileSuffix());
|
||||
//进行简历数据提取
|
||||
ResumeTextExtractor extractor = new ResumeTextExtractor();
|
||||
ResumeData resumeData = extractor.extractResumeData(contents,"");
|
||||
|
||||
Reference in New Issue
Block a user