Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
6896eb0e
Commit
6896eb0e
authored
Mar 18, 2022
by
龙于生
Committed by
284718418@qq.com
Mar 30, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改招聘h5接口
parent
1482a7e9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
11 deletions
+24
-11
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
+17
-11
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
+7
-0
No files found.
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
View file @
6896eb0e
...
...
@@ -31,23 +31,23 @@ public class ZpglH5Controller {
@RequestMapping
(
"/add_interview_application"
)
@ApiOperation
(
value
=
"添加面试申请"
,
httpMethod
=
"POST"
,
notes
=
"添加面试申请"
)
@Log
(
title
=
"addInterviewApplication"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
Object
>
addInterviewApplication
(
@Validated
@RequestBody
InterviewApplicationDto
interviewApplicationD
to
)
{
System
.
out
.
println
(
interviewApplicationD
to
);
public
Result
<
Object
>
addInterviewApplication
(
@Validated
@RequestBody
InterviewApplicationDto
d
to
)
{
System
.
out
.
println
(
d
to
);
ZpglRcxx
zpglRcxx
=
new
ZpglRcxx
();
//复制到 ZpglRcxx 实体对象
BeanUtils
.
copyProperties
(
interviewApplicationD
to
,
zpglRcxx
);
BeanUtils
.
copyProperties
(
d
to
,
zpglRcxx
);
zpglRcxx
.
insertOrUpdate
();
//添加紧急联系人
if
(
interviewApplicationD
to
.
getZpglRcxxLxxxb
()
!=
null
){
ZpglRcxxLxxxb
zpglRcxxLxxxb
=
interviewApplicationD
to
.
getZpglRcxxLxxxb
();
if
(
d
to
.
getZpglRcxxLxxxb
()
!=
null
){
ZpglRcxxLxxxb
zpglRcxxLxxxb
=
d
to
.
getZpglRcxxLxxxb
();
zpglRcxxLxxxb
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
zpglRcxxLxxxb
.
insertOrUpdate
();
}
//新增/修改工作经验
if
(
interviewApplicationD
to
.
getZpglRcxxExperience
().
size
()>
0
){
List
<
ZpglRcxxExperience
>
experiences
=
interviewApplicationD
to
.
getZpglRcxxExperience
();
if
(
dto
.
getZpglRcxxExperience
()
!=
null
&&
d
to
.
getZpglRcxxExperience
().
size
()>
0
){
List
<
ZpglRcxxExperience
>
experiences
=
d
to
.
getZpglRcxxExperience
();
for
(
ZpglRcxxExperience
experience
:
experiences
){
if
(
experience
.
getCompany
()
!=
null
){
experience
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
...
@@ -57,8 +57,8 @@ public class ZpglH5Controller {
}
//新增/修改教育经历
if
(
interviewApplicationD
to
.
getZpglRcxxStudy
().
size
()>
0
){
List
<
ZpglRcxxStudy
>
zpglRcxxStudys
=
interviewApplicationD
to
.
getZpglRcxxStudy
();
if
(
dto
.
getZpglRcxxStudy
()
!=
null
&&
d
to
.
getZpglRcxxStudy
().
size
()>
0
){
List
<
ZpglRcxxStudy
>
zpglRcxxStudys
=
d
to
.
getZpglRcxxStudy
();
for
(
ZpglRcxxStudy
study
:
zpglRcxxStudys
){
if
(
study
.
getSchoolName
()
!=
null
){
study
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
...
@@ -67,8 +67,8 @@ public class ZpglH5Controller {
}
}
//新增/修改家庭资料
if
(
interviewApplicationD
to
.
getZpglRcxxJtzls
().
size
()>
0
){
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
=
interviewApplicationD
to
.
getZpglRcxxJtzls
();
if
(
dto
.
getZpglRcxxJtzls
()
!=
null
&&
d
to
.
getZpglRcxxJtzls
().
size
()>
0
){
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
=
d
to
.
getZpglRcxxJtzls
();
for
(
ZpglRcxxJtzl
jtzl
:
zpglRcxxJtzls
){
if
(
jtzl
.
getName
()
!=
null
){
jtzl
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
...
@@ -110,24 +110,30 @@ public class ZpglH5Controller {
List
<
ZpglRcxxLxxxb
>
zpglRcxxLxxxbs
=
ZpglRcxxLxxxb
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
ZpglRcxxLxxxb
>()
.
lambda
().
select
(
ZpglRcxxLxxxb:
:
getId
,
ZpglRcxxLxxxb:
:
getLinkName
,
ZpglRcxxLxxxb:
:
getLinkMobile
)
.
eq
(
ZpglRcxxLxxxb:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
if
(
zpglRcxxLxxxbs
.
size
()>
0
)
dto
.
setZpglRcxxLxxxb
(
zpglRcxxLxxxbs
.
get
(
0
));
//工作经验
List
<
ZpglRcxxExperience
>
experiences
=
ZpglRcxxExperience
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxExperience
>()
.
lambda
().
eq
(
ZpglRcxxExperience:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
if
(
experiences
.
size
()>
0
)
dto
.
setZpglRcxxExperience
(
experiences
);
//教育经历
List
<
ZpglRcxxStudy
>
study
=
ZpglRcxxStudy
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxStudy
>()
.
lambda
().
eq
(
ZpglRcxxStudy:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
if
(
study
.
size
()>
0
)
dto
.
setZpglRcxxStudy
(
study
);
//家庭资料
List
<
ZpglRcxxJtzl
>
jtzl
=
ZpglRcxxJtzl
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxJtzl
>()
.
lambda
().
eq
(
ZpglRcxxJtzl:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
if
(
jtzl
.
size
()>
0
)
dto
.
setZpglRcxxJtzls
(
jtzl
);
return
ResultUtil
.
data
(
dto
,
"查询成功"
);
...
...
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
View file @
6896eb0e
...
...
@@ -131,6 +131,13 @@ public class InterviewApplicationDto implements Serializable {
*/
@ApiModelProperty
(
value
=
"详细地址"
)
private
String
address
;
/**
* 现居住地详址
*/
@ApiModelProperty
(
value
=
"现居住地详址"
)
private
String
grAddress
;
/**
* 是否结婚:0否,1是
*/
...
...
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