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
d495a694
Commit
d495a694
authored
Oct 11, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修正人力资源接口[职位、简历]出参
parent
4cd02136
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
138 additions
and
58 deletions
+138
-58
HumanResourceServiceImpl.java
...an_resources/aggregate/impl/HumanResourceServiceImpl.java
+8
-5
BizHumanResourcePositionConvert.java
...an_resources/convert/BizHumanResourcePositionConvert.java
+15
-31
BizHumanResourceResumeConvert.java
...uman_resources/convert/BizHumanResourceResumeConvert.java
+39
-4
BizHumanResourceResumeDto.java
...om/poc/human_resources/dto/BizHumanResourceResumeDto.java
+14
-0
ResumeDto.java
src/main/java/cn/com/poc/human_resources/dto/ResumeDto.java
+8
-0
BizHumanResourceResumeEntity.java
.../human_resources/entity/BizHumanResourceResumeEntity.java
+14
-0
Por.java
.../java/cn/com/poc/human_resources/entity/position/Por.java
+9
-10
Info.java
...n/java/cn/com/poc/human_resources/entity/resume/Info.java
+16
-8
BizHumanResourceResumeModel.java
...oc/human_resources/model/BizHumanResourceResumeModel.java
+15
-0
No files found.
src/main/java/cn/com/poc/human_resources/aggregate/impl/HumanResourceServiceImpl.java
View file @
d495a694
...
@@ -34,6 +34,7 @@ import cn.com.poc.thirdparty.resource.demand.ai.entity.largemodel.LargeModelDema
...
@@ -34,6 +34,7 @@ import cn.com.poc.thirdparty.resource.demand.ai.entity.largemodel.LargeModelDema
import
cn.com.yict.framemax.core.exception.BusinessException
;
import
cn.com.yict.framemax.core.exception.BusinessException
;
import
cn.com.yict.framemax.data.model.PagingInfo
;
import
cn.com.yict.framemax.data.model.PagingInfo
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.CollectionUtils
;
import
org.apache.commons.collections4.MapUtils
;
import
org.springframework.retry.annotation.Backoff
;
import
org.springframework.retry.annotation.Backoff
;
import
org.springframework.retry.annotation.Retryable
;
import
org.springframework.retry.annotation.Retryable
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -67,7 +68,9 @@ public class HumanResourceServiceImpl implements HumanResourceService {
...
@@ -67,7 +68,9 @@ public class HumanResourceServiceImpl implements HumanResourceService {
@Retryable
(
value
=
Exception
.
class
,
maxAttempts
=
2
,
backoff
=
@Backoff
(
delay
=
1000
,
multiplier
=
2
))
@Retryable
(
value
=
Exception
.
class
,
maxAttempts
=
2
,
backoff
=
@Backoff
(
delay
=
1000
,
multiplier
=
2
))
public
Resume
uploadResume
(
String
fileURL
,
Long
positionId
,
Long
userId
)
throws
Exception
{
public
Resume
uploadResume
(
String
fileURL
,
Long
positionId
,
Long
userId
)
throws
Exception
{
BizHumanResourcePositionEntity
bizHumanResourcePositionEntity
=
bizHumanResourcePositionService
.
get
(
positionId
);
BizHumanResourcePositionEntity
bizHumanResourcePositionEntity
=
bizHumanResourcePositionService
.
get
(
positionId
);
if
(
bizHumanResourcePositionEntity
==
null
)
{
throw
new
BusinessException
(
"该岗位信息不存在"
);
}
Map
<
String
,
Object
>
inputs
=
new
LinkedHashMap
<>();
Map
<
String
,
Object
>
inputs
=
new
LinkedHashMap
<>();
inputs
.
put
(
"position"
,
JsonUtils
.
serialize
(
bizHumanResourcePositionEntity
));
inputs
.
put
(
"position"
,
JsonUtils
.
serialize
(
bizHumanResourcePositionEntity
));
...
@@ -96,7 +99,7 @@ public class HumanResourceServiceImpl implements HumanResourceService {
...
@@ -96,7 +99,7 @@ public class HumanResourceServiceImpl implements HumanResourceService {
throw
new
BusinessException
(
"提取简历失败"
);
throw
new
BusinessException
(
"提取简历失败"
);
}
}
Resume
resume
=
JsonUtils
.
deSerialize
(
response
.
getAnswer
(),
Resume
.
class
);
Resume
resume
=
JsonUtils
.
deSerialize
(
response
.
getAnswer
(),
Resume
.
class
);
if
(
resume
==
null
){
if
(
resume
==
null
)
{
throw
new
BusinessException
(
"提取简历异常"
);
throw
new
BusinessException
(
"提取简历异常"
);
}
}
this
.
saveResume
(
userId
,
fileURL
,
positionId
,
resume
);
this
.
saveResume
(
userId
,
fileURL
,
positionId
,
resume
);
...
@@ -183,9 +186,9 @@ public class HumanResourceServiceImpl implements HumanResourceService {
...
@@ -183,9 +186,9 @@ public class HumanResourceServiceImpl implements HumanResourceService {
bizHumanResourcePositionEntity
.
setJobRequirements
(
job
.
getJobRequirements
());
bizHumanResourcePositionEntity
.
setJobRequirements
(
job
.
getJobRequirements
());
bizHumanResourcePositionEntity
.
setJobDuties
(
job
.
getJobDuties
());
bizHumanResourcePositionEntity
.
setJobDuties
(
job
.
getJobDuties
());
bizHumanResourcePositionEntity
.
setEssential
(
Collection
Utils
.
isNotEmpty
(
por
.
getEssential
())
?
JsonUtils
.
serialize
(
por
.
getEssential
())
:
null
);
bizHumanResourcePositionEntity
.
setEssential
(
Map
Utils
.
isNotEmpty
(
por
.
getEssential
())
?
JsonUtils
.
serialize
(
por
.
getEssential
())
:
null
);
bizHumanResourcePositionEntity
.
setBonusPoints
(
Collection
Utils
.
isNotEmpty
(
por
.
getBonusPoints
())
?
JsonUtils
.
serialize
(
por
.
getBonusPoints
())
:
null
);
bizHumanResourcePositionEntity
.
setBonusPoints
(
Map
Utils
.
isNotEmpty
(
por
.
getBonusPoints
())
?
JsonUtils
.
serialize
(
por
.
getBonusPoints
())
:
null
);
bizHumanResourcePositionEntity
.
setExclusion
(
Collection
Utils
.
isNotEmpty
(
por
.
getExclusion
())
?
JsonUtils
.
serialize
(
por
.
getExclusion
())
:
null
);
bizHumanResourcePositionEntity
.
setExclusion
(
Map
Utils
.
isNotEmpty
(
por
.
getExclusion
())
?
JsonUtils
.
serialize
(
por
.
getExclusion
())
:
null
);
bizHumanResourcePositionEntity
.
setMemberId
(
memberId
);
bizHumanResourcePositionEntity
.
setMemberId
(
memberId
);
return
id
!=
null
?
bizHumanResourcePositionService
.
update
(
bizHumanResourcePositionEntity
)
:
bizHumanResourcePositionService
.
save
(
bizHumanResourcePositionEntity
);
return
id
!=
null
?
bizHumanResourcePositionService
.
update
(
bizHumanResourcePositionEntity
)
:
bizHumanResourcePositionService
.
save
(
bizHumanResourcePositionEntity
);
...
...
src/main/java/cn/com/poc/human_resources/convert/BizHumanResourcePositionConvert.java
View file @
d495a694
...
@@ -135,46 +135,30 @@ public class BizHumanResourcePositionConvert {
...
@@ -135,46 +135,30 @@ public class BizHumanResourcePositionConvert {
Por
por
=
new
Por
();
Por
por
=
new
Por
();
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getEssential
()))
{
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getEssential
()))
{
JSONArray
jsonArray
=
JSONObject
.
parseArray
(
positionEntity
.
getEssential
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
positionEntity
.
getEssential
());
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
for
(
String
key
:
jsonObject
.
keySet
())
{
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
i
);
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
for
(
String
key
:
jsonObject
.
keySet
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
list
.
add
(
map
);
}
}
}
por
.
setEssential
(
list
);
por
.
setEssential
(
map
);
}
}
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getBonusPoints
()))
{
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getBonusPoints
()))
{
JSONArray
jsonArray
=
JSONObject
.
parseArray
(
positionEntity
.
getBonusPoints
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
positionEntity
.
getBonusPoints
());
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
for
(
String
key
:
jsonObject
.
keySet
())
{
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
i
);
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
for
(
String
key
:
jsonObject
.
keySet
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
list
.
add
(
map
);
}
}
}
por
.
setBonusPoints
(
list
);
por
.
setBonusPoints
(
map
);
}
}
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getExclusion
()))
{
if
(
StringUtils
.
isNotBlank
(
positionEntity
.
getExclusion
()))
{
JSONArray
jsonArray
=
JSONObject
.
parseArray
(
positionEntity
.
getExclusion
());
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
positionEntity
.
getExclusion
());
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
for
(
String
key
:
jsonObject
.
keySet
())
{
JSONObject
jsonObject
=
jsonArray
.
getJSONObject
(
i
);
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
for
(
String
key
:
jsonObject
.
keySet
())
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
key
,
jsonObject
.
getString
(
key
));
list
.
add
(
map
);
}
}
}
por
.
setExclusion
(
list
);
por
.
setExclusion
(
map
);
}
}
resourcePositionDto
.
setPor
(
por
);
resourcePositionDto
.
setPor
(
por
);
return
resourcePositionDto
;
return
resourcePositionDto
;
...
...
src/main/java/cn/com/poc/human_resources/convert/BizHumanResourceResumeConvert.java
View file @
d495a694
package
cn
.
com
.
poc
.
human_resources
.
convert
;
package
cn
.
com
.
poc
.
human_resources
.
convert
;
import
cn.com.poc.common.utils.JsonUtils
;
import
cn.com.poc.common.utils.JsonUtils
;
import
cn.com.poc.common.utils.StringUtils
;
import
cn.com.poc.human_resources.dto.BizHumanResourceResumeDto
;
import
cn.com.poc.human_resources.dto.BizHumanResourceResumeDto
;
import
cn.com.poc.human_resources.dto.ResumeDto
;
import
cn.com.poc.human_resources.dto.ResumeDto
;
import
cn.com.poc.human_resources.entity.BizHumanResourceResumeEntity
;
import
cn.com.poc.human_resources.entity.BizHumanResourceResumeEntity
;
...
@@ -8,9 +9,14 @@ import cn.com.poc.human_resources.entity.resume.Info;
...
@@ -8,9 +9,14 @@ import cn.com.poc.human_resources.entity.resume.Info;
import
cn.com.poc.human_resources.entity.resume.Resume
;
import
cn.com.poc.human_resources.entity.resume.Resume
;
import
cn.com.poc.human_resources.entity.resume.Tag
;
import
cn.com.poc.human_resources.entity.resume.Tag
;
import
cn.com.poc.human_resources.model.BizHumanResourceResumeModel
;
import
cn.com.poc.human_resources.model.BizHumanResourceResumeModel
;
import
com.alibaba.fastjson.JSONArray
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
com.fasterxml.jackson.core.type.TypeReference
;
import
java.util.ArrayList
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.stream.Collectors
;
public
class
BizHumanResourceResumeConvert
{
public
class
BizHumanResourceResumeConvert
{
...
@@ -18,6 +24,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -18,6 +24,7 @@ public class BizHumanResourceResumeConvert {
public
static
BizHumanResourceResumeEntity
modelToEntity
(
BizHumanResourceResumeModel
model
)
{
public
static
BizHumanResourceResumeEntity
modelToEntity
(
BizHumanResourceResumeModel
model
)
{
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
entity
.
setId
(
model
.
getId
());
entity
.
setId
(
model
.
getId
());
entity
.
setName
(
model
.
getName
());
entity
.
setPosition
(
model
.
getPosition
());
entity
.
setPosition
(
model
.
getPosition
());
entity
.
setFileUrl
(
model
.
getFileUrl
());
entity
.
setFileUrl
(
model
.
getFileUrl
());
entity
.
setCoreSkills
(
model
.
getCoreSkills
());
entity
.
setCoreSkills
(
model
.
getCoreSkills
());
...
@@ -44,6 +51,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -44,6 +51,7 @@ public class BizHumanResourceResumeConvert {
public
static
BizHumanResourceResumeModel
entityToModel
(
BizHumanResourceResumeEntity
entity
)
{
public
static
BizHumanResourceResumeModel
entityToModel
(
BizHumanResourceResumeEntity
entity
)
{
BizHumanResourceResumeModel
model
=
new
BizHumanResourceResumeModel
();
BizHumanResourceResumeModel
model
=
new
BizHumanResourceResumeModel
();
model
.
setId
(
entity
.
getId
());
model
.
setId
(
entity
.
getId
());
model
.
setName
(
entity
.
getName
());
model
.
setPosition
(
entity
.
getPosition
());
model
.
setPosition
(
entity
.
getPosition
());
model
.
setFileUrl
(
entity
.
getFileUrl
());
model
.
setFileUrl
(
entity
.
getFileUrl
());
model
.
setCoreSkills
(
entity
.
getCoreSkills
());
model
.
setCoreSkills
(
entity
.
getCoreSkills
());
...
@@ -70,6 +78,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -70,6 +78,7 @@ public class BizHumanResourceResumeConvert {
public
static
BizHumanResourceResumeDto
entityToDto
(
BizHumanResourceResumeEntity
entity
)
{
public
static
BizHumanResourceResumeDto
entityToDto
(
BizHumanResourceResumeEntity
entity
)
{
BizHumanResourceResumeDto
dto
=
new
BizHumanResourceResumeDto
();
BizHumanResourceResumeDto
dto
=
new
BizHumanResourceResumeDto
();
dto
.
setId
(
entity
.
getId
());
dto
.
setId
(
entity
.
getId
());
dto
.
setName
(
entity
.
getName
());
dto
.
setPosition
(
entity
.
getPosition
());
dto
.
setPosition
(
entity
.
getPosition
());
dto
.
setFileUrl
(
entity
.
getFileUrl
());
dto
.
setFileUrl
(
entity
.
getFileUrl
());
dto
.
setCoreSkills
(
entity
.
getCoreSkills
());
dto
.
setCoreSkills
(
entity
.
getCoreSkills
());
...
@@ -96,6 +105,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -96,6 +105,7 @@ public class BizHumanResourceResumeConvert {
public
static
BizHumanResourceResumeEntity
dtoToEntity
(
BizHumanResourceResumeDto
dto
)
{
public
static
BizHumanResourceResumeEntity
dtoToEntity
(
BizHumanResourceResumeDto
dto
)
{
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
entity
=
new
BizHumanResourceResumeEntity
();
entity
.
setId
(
dto
.
getId
());
entity
.
setId
(
dto
.
getId
());
entity
.
setName
(
dto
.
getName
());
entity
.
setPosition
(
dto
.
getPosition
());
entity
.
setPosition
(
dto
.
getPosition
());
entity
.
setFileUrl
(
dto
.
getFileUrl
());
entity
.
setFileUrl
(
dto
.
getFileUrl
());
entity
.
setCoreSkills
(
dto
.
getCoreSkills
());
entity
.
setCoreSkills
(
dto
.
getCoreSkills
());
...
@@ -123,15 +133,39 @@ public class BizHumanResourceResumeConvert {
...
@@ -123,15 +133,39 @@ public class BizHumanResourceResumeConvert {
ResumeDto
dto
=
new
ResumeDto
();
ResumeDto
dto
=
new
ResumeDto
();
dto
.
setId
(
entity
.
getId
());
dto
.
setId
(
entity
.
getId
());
dto
.
setPositionId
(
entity
.
getPosition
());
dto
.
setPositionId
(
entity
.
getPosition
());
dto
.
setFileUrl
(
entity
.
getFileUrl
());
Info
info
=
new
Info
();
Info
info
=
new
Info
();
info
.
setName
(
entity
.
getName
());
info
.
setCoreSkills
(
JsonUtils
.
deSerialize
(
entity
.
getCoreSkills
(),
new
TypeReference
<
List
<
String
>>()
{
info
.
setCoreSkills
(
JsonUtils
.
deSerialize
(
entity
.
getCoreSkills
(),
new
TypeReference
<
List
<
String
>>()
{
}.
getType
()));
}.
getType
()));
info
.
setEducationBackground
(
JsonUtils
.
deSerialize
(
entity
.
getEducationBackground
(),
String
.
class
));
info
.
setEducationBackground
(
JsonUtils
.
deSerialize
(
entity
.
getEducationBackground
(),
String
.
class
));
info
.
setEducationExperience
(
JsonUtils
.
deSerialize
(
entity
.
getEducationExperience
(),
new
TypeReference
<
List
<
String
>>()
{
}.
getType
()));
if
(
StringUtils
.
isNotBlank
(
entity
.
getEducationExperience
()))
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entity
.
getEducationExperience
());
LinkedHashMap
<
String
,
String
>
map
=
new
LinkedHashMap
<>();
for
(
String
key
:
jsonObject
.
keySet
())
{
String
value
=
jsonObject
.
getString
(
key
);
map
.
put
(
key
,
value
);
}
info
.
setEducationExperience
(
map
);
}
info
.
setGenderAndAge
(
JsonUtils
.
deSerialize
(
entity
.
getGenderAndAge
(),
String
.
class
));
info
.
setGenderAndAge
(
JsonUtils
.
deSerialize
(
entity
.
getGenderAndAge
(),
String
.
class
));
info
.
setOccupationalHistory
(
JsonUtils
.
deSerialize
(
entity
.
getOccupationalHistory
(),
new
TypeReference
<
List
<
String
>>()
{
}.
getType
()));
if
(
StringUtils
.
isNotBlank
(
entity
.
getOccupationalHistory
()))
{
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
entity
.
getOccupationalHistory
());
LinkedHashMap
<
String
,
List
<
String
>>
map
=
new
LinkedHashMap
<>();
for
(
String
key
:
jsonObject
.
keySet
())
{
JSONArray
jsonArray
=
jsonObject
.
getJSONArray
(
key
);
ArrayList
<
String
>
list
=
new
ArrayList
<>(
jsonArray
.
size
());
for
(
int
i
=
0
;
i
<
jsonArray
.
size
();
i
++)
{
list
.
add
(
jsonArray
.
getString
(
i
));
}
map
.
put
(
key
,
list
);
}
info
.
setOccupationalHistory
(
map
);
}
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
));
...
@@ -152,6 +186,7 @@ public class BizHumanResourceResumeConvert {
...
@@ -152,6 +186,7 @@ public class BizHumanResourceResumeConvert {
public
static
BizHumanResourceResumeEntity
resumeToEntity
(
Resume
resume
)
{
public
static
BizHumanResourceResumeEntity
resumeToEntity
(
Resume
resume
)
{
BizHumanResourceResumeEntity
bizHumanResourceResumeEntity
=
new
BizHumanResourceResumeEntity
();
BizHumanResourceResumeEntity
bizHumanResourceResumeEntity
=
new
BizHumanResourceResumeEntity
();
//info
//info
bizHumanResourceResumeEntity
.
setName
(
resume
.
getInfo
().
getName
());
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 @
d495a694
...
@@ -32,6 +32,20 @@ public class BizHumanResourceResumeDto {
...
@@ -32,6 +32,20 @@ public class BizHumanResourceResumeDto {
this
.
position
=
position
;
this
.
position
=
position
;
}
}
/**
* name
* 姓名
*/
private
String
name
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
/**
* 简历文件地址
* 简历文件地址
*/
*/
...
...
src/main/java/cn/com/poc/human_resources/dto/ResumeDto.java
View file @
d495a694
...
@@ -10,7 +10,15 @@ public class ResumeDto extends Resume {
...
@@ -10,7 +10,15 @@ public class ResumeDto extends Resume {
private
Long
id
;
private
Long
id
;
private
Long
positionId
;
private
Long
positionId
;
private
String
fileUrl
;
public
String
getFileUrl
()
{
return
fileUrl
;
}
public
void
setFileUrl
(
String
fileUrl
)
{
this
.
fileUrl
=
fileUrl
;
}
public
Long
getId
()
{
public
Long
getId
()
{
return
id
;
return
id
;
...
...
src/main/java/cn/com/poc/human_resources/entity/BizHumanResourceResumeEntity.java
View file @
d495a694
...
@@ -31,6 +31,20 @@ public class BizHumanResourceResumeEntity {
...
@@ -31,6 +31,20 @@ public class BizHumanResourceResumeEntity {
this
.
position
=
position
;
this
.
position
=
position
;
}
}
/**
* name
* 姓名
*/
private
String
name
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
/**
/**
* 简历文件地址
* 简历文件地址
*/
*/
...
...
src/main/java/cn/com/poc/human_resources/entity/position/Por.java
View file @
d495a694
package
cn
.
com
.
poc
.
human_resources
.
entity
.
position
;
package
cn
.
com
.
poc
.
human_resources
.
entity
.
position
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
/**
/**
...
@@ -11,39 +10,39 @@ public class Por {
...
@@ -11,39 +10,39 @@ public class Por {
/**
/**
* 必备项
* 必备项
*/
*/
private
List
<
Map
<
String
,
String
>
>
essential
;
private
Map
<
String
,
String
>
essential
;
/**
/**
* 加分项
* 加分项
*/
*/
private
List
<
Map
<
String
,
String
>
>
bonusPoints
;
private
Map
<
String
,
String
>
bonusPoints
;
/**
/**
* 排除项
* 排除项
*/
*/
private
List
<
Map
<
String
,
String
>
>
exclusion
;
private
Map
<
String
,
String
>
exclusion
;
public
List
<
Map
<
String
,
String
>
>
getEssential
()
{
public
Map
<
String
,
String
>
getEssential
()
{
return
essential
;
return
essential
;
}
}
public
void
setEssential
(
List
<
Map
<
String
,
String
>
>
essential
)
{
public
void
setEssential
(
Map
<
String
,
String
>
essential
)
{
this
.
essential
=
essential
;
this
.
essential
=
essential
;
}
}
public
List
<
Map
<
String
,
String
>
>
getBonusPoints
()
{
public
Map
<
String
,
String
>
getBonusPoints
()
{
return
bonusPoints
;
return
bonusPoints
;
}
}
public
void
setBonusPoints
(
List
<
Map
<
String
,
String
>
>
bonusPoints
)
{
public
void
setBonusPoints
(
Map
<
String
,
String
>
bonusPoints
)
{
this
.
bonusPoints
=
bonusPoints
;
this
.
bonusPoints
=
bonusPoints
;
}
}
public
List
<
Map
<
String
,
String
>
>
getExclusion
()
{
public
Map
<
String
,
String
>
getExclusion
()
{
return
exclusion
;
return
exclusion
;
}
}
public
void
setExclusion
(
List
<
Map
<
String
,
String
>
>
exclusion
)
{
public
void
setExclusion
(
Map
<
String
,
String
>
exclusion
)
{
this
.
exclusion
=
exclusion
;
this
.
exclusion
=
exclusion
;
}
}
}
}
src/main/java/cn/com/poc/human_resources/entity/resume/Info.java
View file @
d495a694
package
cn
.
com
.
poc
.
human_resources
.
entity
.
resume
;
package
cn
.
com
.
poc
.
human_resources
.
entity
.
resume
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
public
class
Info
{
public
class
Info
{
private
String
name
;
private
List
<
String
>
coreSkills
;
private
List
<
String
>
coreSkills
;
private
String
educationBackground
;
private
String
educationBackground
;
private
List
<
String
>
educationExperience
;
private
Map
<
String
,
String
>
educationExperience
;
private
String
genderAndAge
;
private
String
genderAndAge
;
private
List
<
String
>
occupationalHistory
;
private
Map
<
String
,
List
<
String
>
>
occupationalHistory
;
private
List
<
String
>
other
;
private
List
<
String
>
other
;
private
String
workExperience
;
private
String
workExperience
;
private
String
workLocation
;
private
String
workLocation
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
List
<
String
>
getCoreSkills
()
{
public
List
<
String
>
getCoreSkills
()
{
return
coreSkills
;
return
coreSkills
;
}
}
...
@@ -30,11 +39,11 @@ public class Info {
...
@@ -30,11 +39,11 @@ public class Info {
this
.
educationBackground
=
educationBackground
;
this
.
educationBackground
=
educationBackground
;
}
}
public
List
<
String
>
getEducationExperience
()
{
public
Map
<
String
,
String
>
getEducationExperience
()
{
return
educationExperience
;
return
educationExperience
;
}
}
public
void
setEducationExperience
(
List
<
String
>
educationExperience
)
{
public
void
setEducationExperience
(
Map
<
String
,
String
>
educationExperience
)
{
this
.
educationExperience
=
educationExperience
;
this
.
educationExperience
=
educationExperience
;
}
}
...
@@ -46,11 +55,11 @@ public class Info {
...
@@ -46,11 +55,11 @@ public class Info {
this
.
genderAndAge
=
genderAndAge
;
this
.
genderAndAge
=
genderAndAge
;
}
}
public
List
<
String
>
getOccupationalHistory
()
{
public
Map
<
String
,
List
<
String
>
>
getOccupationalHistory
()
{
return
occupationalHistory
;
return
occupationalHistory
;
}
}
public
void
setOccupationalHistory
(
List
<
String
>
occupationalHistory
)
{
public
void
setOccupationalHistory
(
Map
<
String
,
List
<
String
>
>
occupationalHistory
)
{
this
.
occupationalHistory
=
occupationalHistory
;
this
.
occupationalHistory
=
occupationalHistory
;
}
}
...
@@ -77,5 +86,4 @@ public class Info {
...
@@ -77,5 +86,4 @@ public class Info {
public
void
setWorkLocation
(
String
workLocation
)
{
public
void
setWorkLocation
(
String
workLocation
)
{
this
.
workLocation
=
workLocation
;
this
.
workLocation
=
workLocation
;
}
}
}
}
src/main/java/cn/com/poc/human_resources/model/BizHumanResourceResumeModel.java
View file @
d495a694
...
@@ -47,6 +47,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
...
@@ -47,6 +47,21 @@ public class BizHumanResourceResumeModel extends BaseModelClass implements Seria
super
.
addValidField
(
"id"
);
super
.
addValidField
(
"id"
);
}
}
/**
* name
* 姓名
*/
private
String
name
;
@Column
(
name
=
"name"
,
length
=
100
)
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
super
.
addValidField
(
"name"
);
}
/**
/**
* position
* position
...
...
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