当前工作公司添加
This commit is contained in:
@@ -27,6 +27,8 @@ public class HotakeCvInfoDto {
|
|||||||
private String position;
|
private String position;
|
||||||
@ApiModelProperty("地点")
|
@ApiModelProperty("地点")
|
||||||
private String location;
|
private String location;
|
||||||
|
@ApiModelProperty("当前工作公司")
|
||||||
|
private String currentWork;
|
||||||
@ApiModelProperty("链接对象集合")
|
@ApiModelProperty("链接对象集合")
|
||||||
private List<VcLinksDto> links;
|
private List<VcLinksDto> links;
|
||||||
@ApiModelProperty("自我介绍")
|
@ApiModelProperty("自我介绍")
|
||||||
|
|||||||
@@ -278,7 +278,7 @@ public class HotakeCvInfoServiceImpl extends BaseServiceImpl implements IHotakeC
|
|||||||
List<Map<String,String>> list = new LinkedList();
|
List<Map<String,String>> list = new LinkedList();
|
||||||
Map<String,String> entity = new HashMap<>();
|
Map<String,String> entity = new HashMap<>();
|
||||||
entity.put("role","user");
|
entity.put("role","user");
|
||||||
entity.put("content","从下面提供的文本中提取所有能识别到的简历信息,只提取原文中存在的内容,不要补充、不推测、不总结。需要提取的字段包括:name(姓名)、phone(电话号码)、email(电子邮件地址)、position(岗位)、location(地点)、links(所有链接地址)、about(关于我/自我介绍)、skills_tools(关键资格(许可证、注册/会员资格、认证))、languages(语言能力)、experience(工作经历(除了title、company、location、duration,其他的都放到description里面,并且description里面要根据换行符分成不同的content))、education(教育经历)。请将提取结果以结构化 JSON 格式返回,格式如下:{ \\\"name\\\": \\\"\\\", \\\"phone\\\": \\\"\\\", \\\"email\\\": \\\"\\\", \\\"links\\\": [{\\\"content\\\":\\\"\\\"}], \\\"about\\\": \\\"\\\", \\\"skillsTools\\\": [{\\\"content\\\":\\\"\\\"}], \\\"languages\\\": [{\\\"content\\\":\\\"\\\"}], \\\"experience\\\": [{\\\"title\\\": \\\"\\\", \\\"company\\\": \\\"\\\",\\\"location\\\": \\\"\\\",\\\"duration\\\": \\\"\\\",\\\"description\\\": [{\\\"content\\\":\\\"\\\"}]}], \\\"education\\\": [{\\\"degree\\\": \\\"\\\",\\\"institution\\\": \\\"\\\",\\\"date\\\": \\\"\\\"}] }。字段不存在则返回 null 或空数组。只返回标准可解析的 JSON结构 ,不要多余的```json等信息,不要解释说明,不要改写内容。以下为待处理文本:"+contents);
|
entity.put("content","从下面提供的文本中提取所有能识别到的简历信息,只提取原文中存在的内容,不要补充、不推测、不总结。需要提取的字段包括:name(姓名)、phone(电话号码)、email(电子邮件地址)、position(岗位)、location(地点)、links(所有链接地址)、currentWork(当前工作公司)、about(关于我/自我介绍)、skills_tools(关键资格(许可证、注册/会员资格、认证))、languages(语言能力)、experience(工作经历(除了title、company、location、duration,其他的都放到description里面,并且description里面要根据换行符分成不同的content))、education(教育经历)。请将提取结果以结构化 JSON 格式返回,格式如下:{ \\\"name\\\": \\\"\\\", \\\"phone\\\": \\\"\\\", \\\"email\\\": \\\"\\\", \\\"links\\\": [{\\\"content\\\":\\\"\\\"}], \\\"about\\\": \\\"\\\", \\\"skillsTools\\\": [{\\\"content\\\":\\\"\\\"}], \\\"languages\\\": [{\\\"content\\\":\\\"\\\"}], \\\"experience\\\": [{\\\"title\\\": \\\"\\\", \\\"company\\\": \\\"\\\",\\\"location\\\": \\\"\\\",\\\"duration\\\": \\\"\\\",\\\"description\\\": [{\\\"content\\\":\\\"\\\"}]}], \\\"education\\\": [{\\\"degree\\\": \\\"\\\",\\\"institution\\\": \\\"\\\",\\\"date\\\": \\\"\\\"}] }。字段不存在则返回 null 或空数组。只返回标准可解析的 JSON结构 ,不要多余的```json等信息,不要解释说明,不要改写内容。以下为待处理文本:"+contents);
|
||||||
//根据AI做
|
//根据AI做
|
||||||
list.add(entity);
|
list.add(entity);
|
||||||
String resultCv = chatGPTClient.handleAiChat(JSONUtil.toJsonStr(list), "JX");
|
String resultCv = chatGPTClient.handleAiChat(JSONUtil.toJsonStr(list), "JX");
|
||||||
@@ -304,6 +304,9 @@ public class HotakeCvInfoServiceImpl extends BaseServiceImpl implements IHotakeC
|
|||||||
if(StrUtil.isEmpty(cvInfoDto.getAbout())){
|
if(StrUtil.isEmpty(cvInfoDto.getAbout())){
|
||||||
cvInfoDto.setAbout("-");
|
cvInfoDto.setAbout("-");
|
||||||
}
|
}
|
||||||
|
if (StrUtil.isEmpty(cvInfoDto.getCurrentWork())){
|
||||||
|
cvInfoDto.setCurrentWork("-");
|
||||||
|
}
|
||||||
if(CollectionUtil.isNotEmpty(cvInfoDto.getSkillsTools())){
|
if(CollectionUtil.isNotEmpty(cvInfoDto.getSkillsTools())){
|
||||||
for (VcSkillsToolsDto toolsDto :cvInfoDto.getSkillsTools()) {
|
for (VcSkillsToolsDto toolsDto :cvInfoDto.getSkillsTools()) {
|
||||||
if(StrUtil.isEmpty(toolsDto.getContent())){
|
if(StrUtil.isEmpty(toolsDto.getContent())){
|
||||||
|
|||||||
Reference in New Issue
Block a user