Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
0513442d
Commit
0513442d
authored
Oct 20, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
bf1842be
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
61 additions
and
4 deletions
+61
-4
BizHumanResourceResumeConvert.java
...uman_resources/convert/BizHumanResourceResumeConvert.java
+6
-1
BizHumanResourceResumeDto.java
...om/poc/human_resources/dto/BizHumanResourceResumeDto.java
+14
-0
BizHumanResourceResumeEntity.java
.../human_resources/entity/BizHumanResourceResumeEntity.java
+15
-1
Info.java
...n/java/cn/com/poc/human_resources/entity/resume/Info.java
+9
-0
BizHumanResourceResumeModel.java
...oc/human_resources/model/BizHumanResourceResumeModel.java
+15
-0
PortalServiceImpl.java
...a/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
+1
-1
FileUtilsTest.java
src/test/java/cn/com/poc/utils/FileUtilsTest.java
+1
-1
No files found.
src/main/java/cn/com/poc/human_resources/convert/BizHumanResourceResumeConvert.java
View file @
0513442d
...
@@ -25,6 +25,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -25,6 +25,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
entity
.
setId
(
model
.
getId
());
entity
.
setId
(
model
.
getId
());
entity
.
setName
(
model
.
getName
());
entity
.
setName
(
model
.
getName
());
entity
.
setCurrentPosition
(
model
.
getCurrentPosition
());
entity
.
setPosition
(
model
.
getPosition
());
entity
.
setPosition
(
model
.
getPosition
());
entity
.
setFileUrl
(
model
.
getFileUrl
());
entity
.
setFileUrl
(
model
.
getFileUrl
());
entity
.
setCoreSkills
(
model
.
getCoreSkills
());
entity
.
setCoreSkills
(
model
.
getCoreSkills
());
...
@@ -52,6 +53,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -52,6 +53,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeModel
model
=
new
BizHumanResourceResumeModel
();
BizHumanResourceResumeModel
model
=
new
BizHumanResourceResumeModel
();
model
.
setId
(
entity
.
getId
());
model
.
setId
(
entity
.
getId
());
model
.
setName
(
entity
.
getName
());
model
.
setName
(
entity
.
getName
());
model
.
setCurrentPosition
(
entity
.
getCurrentPosition
());
model
.
setPosition
(
entity
.
getPosition
());
model
.
setPosition
(
entity
.
getPosition
());
model
.
setFileUrl
(
entity
.
getFileUrl
());
model
.
setFileUrl
(
entity
.
getFileUrl
());
model
.
setCoreSkills
(
entity
.
getCoreSkills
());
model
.
setCoreSkills
(
entity
.
getCoreSkills
());
...
@@ -79,6 +81,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -79,6 +81,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeDto
dto
=
new
BizHumanResourceResumeDto
();
BizHumanResourceResumeDto
dto
=
new
BizHumanResourceResumeDto
();
dto
.
setId
(
entity
.
getId
());
dto
.
setId
(
entity
.
getId
());
dto
.
setName
(
entity
.
getName
());
dto
.
setName
(
entity
.
getName
());
dto
.
setCurrentPosition
(
entity
.
getCurrentPosition
());
dto
.
setPosition
(
entity
.
getPosition
());
dto
.
setPosition
(
entity
.
getPosition
());
dto
.
setFileUrl
(
entity
.
getFileUrl
());
dto
.
setFileUrl
(
entity
.
getFileUrl
());
dto
.
setCoreSkills
(
entity
.
getCoreSkills
());
dto
.
setCoreSkills
(
entity
.
getCoreSkills
());
...
@@ -106,6 +109,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -106,6 +109,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
entity
.
setId
(
dto
.
getId
());
entity
.
setId
(
dto
.
getId
());
entity
.
setName
(
dto
.
getName
());
entity
.
setName
(
dto
.
getName
());
entity
.
setCurrentPosition
(
dto
.
getCurrentPosition
());
entity
.
setPosition
(
dto
.
getPosition
());
entity
.
setPosition
(
dto
.
getPosition
());
entity
.
setFileUrl
(
dto
.
getFileUrl
());
entity
.
setFileUrl
(
dto
.
getFileUrl
());
entity
.
setCoreSkills
(
dto
.
getCoreSkills
());
entity
.
setCoreSkills
(
dto
.
getCoreSkills
());
...
@@ -165,7 +169,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -165,7 +169,7 @@ public class BizHumanResourceResumeConvert {
}
}
info
.
setOccupationalHistory
(
map
);
info
.
setOccupationalHistory
(
map
);
}
}
info
.
setCurrentPosition
(
entity
.
getCurrentPosition
());
info
.
setOther
(
JsonUtils
.
deSerialize
(
entity
.
getOther
(),
new
TypeReference
<
List
<
String
>>()
{
info
.
setOther
(
JsonUtils
.
deSerialize
(
entity
.
getOther
(),
new
TypeReference
<
List
<
String
>>()
{
}.
getType
()));
}.
getType
()));
info
.
setWorkExperience
(
JsonUtils
.
deSerialize
(
entity
.
getWorkExperience
(),
String
.
class
));
info
.
setWorkExperience
(
JsonUtils
.
deSerialize
(
entity
.
getWorkExperience
(),
String
.
class
));
...
@@ -187,6 +191,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -187,6 +191,7 @@ public class BizHumanResourceResumeConvert {
BizHumanResourceResumeEntity
bizHumanResourceResumeEntity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
bizHumanResourceResumeEntity
=
new
BizHumanResourceResumeEntity
();
//info
//info
bizHumanResourceResumeEntity
.
setName
(
resume
.
getInfo
().
getName
());
bizHumanResourceResumeEntity
.
setName
(
resume
.
getInfo
().
getName
());
bizHumanResourceResumeEntity
.
setCurrentPosition
(
resume
.
getInfo
().
getCurrentPosition
());
bizHumanResourceResumeEntity
.
setCoreSkills
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getCoreSkills
()));
bizHumanResourceResumeEntity
.
setCoreSkills
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getCoreSkills
()));
bizHumanResourceResumeEntity
.
setEducationBackground
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getEducationBackground
()));
bizHumanResourceResumeEntity
.
setEducationBackground
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getEducationBackground
()));
bizHumanResourceResumeEntity
.
setEducationExperience
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getEducationExperience
()));
bizHumanResourceResumeEntity
.
setEducationExperience
(
JsonUtils
.
serialize
(
resume
.
getInfo
().
getEducationExperience
()));
...
...
src/main/java/cn/com/poc/human_resources/dto/BizHumanResourceResumeDto.java
View file @
0513442d
...
@@ -59,6 +59,20 @@ public class BizHumanResourceResumeDto {
...
@@ -59,6 +59,20 @@ public class BizHumanResourceResumeDto {
this
.
fileUrl
=
fileUrl
;
this
.
fileUrl
=
fileUrl
;
}
}
/**
* 当前职位
*/
private
String
currentPosition
;
public
String
getCurrentPosition
()
{
return
currentPosition
;
}
public
void
setCurrentPosition
(
String
currentPosition
)
{
this
.
currentPosition
=
currentPosition
;
}
/**
/**
* core_skills
* core_skills
* 核心技能
* 核心技能
...
...
src/main/java/cn/com/poc/human_resources/entity/BizHumanResourceResumeEntity.java
View file @
0513442d
...
@@ -57,7 +57,21 @@ public class BizHumanResourceResumeEntity {
...
@@ -57,7 +57,21 @@ public class BizHumanResourceResumeEntity {
public
void
setFileUrl
(
String
fileUrl
)
{
public
void
setFileUrl
(
String
fileUrl
)
{
this
.
fileUrl
=
fileUrl
;
this
.
fileUrl
=
fileUrl
;
}
}
/** core_skills
/**
* 当前职位
*/
private
String
currentPosition
;
public
String
getCurrentPosition
()
{
return
currentPosition
;
}
public
void
setCurrentPosition
(
String
currentPosition
)
{
this
.
currentPosition
=
currentPosition
;
}
/** core_skills
*核心技能
*核心技能
*/
*/
private
java
.
lang
.
String
coreSkills
;
private
java
.
lang
.
String
coreSkills
;
...
...
src/main/java/cn/com/poc/human_resources/entity/resume/Info.java
View file @
0513442d
...
@@ -6,6 +6,7 @@ import java.util.Map;
...
@@ -6,6 +6,7 @@ import java.util.Map;
public
class
Info
{
public
class
Info
{
private
String
name
;
private
String
name
;
private
String
currentPosition
;
private
List
<
String
>
coreSkills
;
private
List
<
String
>
coreSkills
;
private
String
educationBackground
;
private
String
educationBackground
;
private
Map
<
String
,
String
>
educationExperience
;
private
Map
<
String
,
String
>
educationExperience
;
...
@@ -23,6 +24,14 @@ public class Info {
...
@@ -23,6 +24,14 @@ public class Info {
this
.
name
=
name
;
this
.
name
=
name
;
}
}
public
String
getCurrentPosition
()
{
return
currentPosition
;
}
public
void
setCurrentPosition
(
String
currentPosition
)
{
this
.
currentPosition
=
currentPosition
;
}
public
List
<
String
>
getCoreSkills
()
{
public
List
<
String
>
getCoreSkills
()
{
return
coreSkills
;
return
coreSkills
;
}
}
...
...
src/main/java/cn/com/poc/human_resources/model/BizHumanResourceResumeModel.java
View file @
0513442d
...
@@ -79,6 +79,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
...
@@ -79,6 +79,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
super
.
addValidField
(
"position"
);
super
.
addValidField
(
"position"
);
}
}
/**
* 当前职位
*/
private
String
currentPosition
;
@Column
(
name
=
"current_position"
,
length
=
100
)
public
String
getCurrentPosition
()
{
return
currentPosition
;
}
public
void
setCurrentPosition
(
String
currentPosition
)
{
this
.
currentPosition
=
currentPosition
;
super
.
addValidField
(
"currentPosition"
);
}
/**
/**
* 简历文件地址
* 简历文件地址
*/
*/
...
...
src/main/java/cn/com/poc/portal/aggregate/impl/PortalServiceImpl.java
View file @
0513442d
...
@@ -220,7 +220,7 @@ public class PortalServiceImpl implements PortalService {
...
@@ -220,7 +220,7 @@ public class PortalServiceImpl implements PortalService {
if
(
CollectionUtils
.
isNotEmpty
(
knowledgeContentResults
))
{
if
(
CollectionUtils
.
isNotEmpty
(
knowledgeContentResults
))
{
String
knowledgeContent
=
JsonUtils
.
serialize
(
knowledgeContentResults
);
String
knowledgeContent
=
JsonUtils
.
serialize
(
knowledgeContentResults
);
prompt
=
prompt
.
replace
(
"${knowledgeContent}"
,
knowledgeContent
);
prompt
=
prompt
.
replace
(
"${knowledgeContent}"
,
knowledgeContent
);
}
else
{
}
else
{
prompt
=
prompt
.
replace
(
"${knowledgeContent}"
,
StringUtils
.
EMPTY
);
prompt
=
prompt
.
replace
(
"${knowledgeContent}"
,
StringUtils
.
EMPTY
);
}
}
if
(
toolFunction
!=
null
)
{
if
(
toolFunction
!=
null
)
{
...
...
src/test/java/cn/com/poc/utils/FileUtilsTest.java
View file @
0513442d
...
@@ -63,7 +63,7 @@ public class FileUtilsTest {
...
@@ -63,7 +63,7 @@ public class FileUtilsTest {
@Test
@Test
public
void
test_pdf
()
{
public
void
test_pdf
()
{
File
file
=
new
File
(
"C:\\Users\\52747\\D
ocuments\\dataset\\迎向AI新纪元:2025企业转型的关键时刻-从2024产业案例看今年生成式AI
.pdf"
);
File
file
=
new
File
(
"C:\\Users\\52747\\D
esktop\\港口基础设施维护管理信息系统建设规范JTST3302025
.pdf"
);
String
pdfResult
=
DocumentLoad
.
documentToText
(
file
);
String
pdfResult
=
DocumentLoad
.
documentToText
(
file
);
System
.
out
.
println
(
pdfResult
);
System
.
out
.
println
(
pdfResult
);
}
}
...
...
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