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
8b594bf0
Commit
8b594bf0
authored
Mar 18, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改招聘h5接口
parent
9589ce2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
15 deletions
+28
-15
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
+21
-15
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 @
8b594bf0
...
@@ -31,23 +31,23 @@ public class ZpglH5Controller {
...
@@ -31,23 +31,23 @@ public class ZpglH5Controller {
@RequestMapping
(
"/add_interview_application"
)
@RequestMapping
(
"/add_interview_application"
)
@ApiOperation
(
value
=
"添加面试申请"
,
httpMethod
=
"POST"
,
notes
=
"添加面试申请"
)
@ApiOperation
(
value
=
"添加面试申请"
,
httpMethod
=
"POST"
,
notes
=
"添加面试申请"
)
@Log
(
title
=
"addInterviewApplication"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
@Log
(
title
=
"addInterviewApplication"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
Object
>
addInterviewApplication
(
@Validated
@RequestBody
InterviewApplicationDto
interviewApplicationD
to
)
{
public
Result
<
Object
>
addInterviewApplication
(
@Validated
@RequestBody
InterviewApplicationDto
d
to
)
{
System
.
out
.
println
(
interviewApplicationD
to
);
System
.
out
.
println
(
d
to
);
ZpglRcxx
zpglRcxx
=
new
ZpglRcxx
();
ZpglRcxx
zpglRcxx
=
new
ZpglRcxx
();
//复制到 ZpglRcxx 实体对象
//复制到 ZpglRcxx 实体对象
BeanUtils
.
copyProperties
(
interviewApplicationD
to
,
zpglRcxx
);
BeanUtils
.
copyProperties
(
d
to
,
zpglRcxx
);
zpglRcxx
.
insertOrUpdate
();
zpglRcxx
.
insertOrUpdate
();
//添加紧急联系人
//添加紧急联系人
if
(
interviewApplicationD
to
.
getZpglRcxxLxxxb
()
!=
null
){
if
(
d
to
.
getZpglRcxxLxxxb
()
!=
null
){
ZpglRcxxLxxxb
zpglRcxxLxxxb
=
interviewApplicationD
to
.
getZpglRcxxLxxxb
();
ZpglRcxxLxxxb
zpglRcxxLxxxb
=
d
to
.
getZpglRcxxLxxxb
();
zpglRcxxLxxxb
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
zpglRcxxLxxxb
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
zpglRcxxLxxxb
.
insertOrUpdate
();
zpglRcxxLxxxb
.
insertOrUpdate
();
}
}
//新增/修改工作经验
//新增/修改工作经验
if
(
interviewApplicationD
to
.
getZpglRcxxExperience
().
size
()>
0
){
if
(
dto
.
getZpglRcxxExperience
()
!=
null
&&
d
to
.
getZpglRcxxExperience
().
size
()>
0
){
List
<
ZpglRcxxExperience
>
experiences
=
interviewApplicationD
to
.
getZpglRcxxExperience
();
List
<
ZpglRcxxExperience
>
experiences
=
d
to
.
getZpglRcxxExperience
();
for
(
ZpglRcxxExperience
experience
:
experiences
){
for
(
ZpglRcxxExperience
experience
:
experiences
){
if
(
experience
.
getCompany
()
!=
null
){
if
(
experience
.
getCompany
()
!=
null
){
experience
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
experience
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
@@ -57,8 +57,8 @@ public class ZpglH5Controller {
...
@@ -57,8 +57,8 @@ public class ZpglH5Controller {
}
}
//新增/修改教育经历
//新增/修改教育经历
if
(
interviewApplicationD
to
.
getZpglRcxxStudy
().
size
()>
0
){
if
(
dto
.
getZpglRcxxStudy
()
!=
null
&&
d
to
.
getZpglRcxxStudy
().
size
()>
0
){
List
<
ZpglRcxxStudy
>
zpglRcxxStudys
=
interviewApplicationD
to
.
getZpglRcxxStudy
();
List
<
ZpglRcxxStudy
>
zpglRcxxStudys
=
d
to
.
getZpglRcxxStudy
();
for
(
ZpglRcxxStudy
study
:
zpglRcxxStudys
){
for
(
ZpglRcxxStudy
study
:
zpglRcxxStudys
){
if
(
study
.
getSchoolName
()
!=
null
){
if
(
study
.
getSchoolName
()
!=
null
){
study
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
study
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
@@ -67,8 +67,8 @@ public class ZpglH5Controller {
...
@@ -67,8 +67,8 @@ public class ZpglH5Controller {
}
}
}
}
//新增/修改家庭资料
//新增/修改家庭资料
if
(
interviewApplicationD
to
.
getZpglRcxxJtzls
().
size
()>
0
){
if
(
dto
.
getZpglRcxxJtzls
()
!=
null
&&
d
to
.
getZpglRcxxJtzls
().
size
()>
0
){
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
=
interviewApplicationD
to
.
getZpglRcxxJtzls
();
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
=
d
to
.
getZpglRcxxJtzls
();
for
(
ZpglRcxxJtzl
jtzl
:
zpglRcxxJtzls
){
for
(
ZpglRcxxJtzl
jtzl
:
zpglRcxxJtzls
){
if
(
jtzl
.
getName
()
!=
null
){
if
(
jtzl
.
getName
()
!=
null
){
jtzl
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
jtzl
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
...
@@ -110,25 +110,31 @@ public class ZpglH5Controller {
...
@@ -110,25 +110,31 @@ public class ZpglH5Controller {
List
<
ZpglRcxxLxxxb
>
zpglRcxxLxxxbs
=
ZpglRcxxLxxxb
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
ZpglRcxxLxxxb
>()
List
<
ZpglRcxxLxxxb
>
zpglRcxxLxxxbs
=
ZpglRcxxLxxxb
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
ZpglRcxxLxxxb
>()
.
lambda
().
select
(
ZpglRcxxLxxxb:
:
getId
,
ZpglRcxxLxxxb:
:
getLinkName
,
ZpglRcxxLxxxb:
:
getLinkMobile
)
.
lambda
().
select
(
ZpglRcxxLxxxb:
:
getId
,
ZpglRcxxLxxxb:
:
getLinkName
,
ZpglRcxxLxxxb:
:
getLinkMobile
)
.
eq
(
ZpglRcxxLxxxb:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
.
eq
(
ZpglRcxxLxxxb:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxLxxxb
(
zpglRcxxLxxxbs
.
get
(
0
));
if
(
zpglRcxxLxxxbs
.
size
()>
0
)
dto
.
setZpglRcxxLxxxb
(
zpglRcxxLxxxbs
.
get
(
0
));
//工作经验
//工作经验
List
<
ZpglRcxxExperience
>
experiences
=
ZpglRcxxExperience
.
builder
().
build
()
List
<
ZpglRcxxExperience
>
experiences
=
ZpglRcxxExperience
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxExperience
>()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxExperience
>()
.
lambda
().
eq
(
ZpglRcxxExperience:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
.
lambda
().
eq
(
ZpglRcxxExperience:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxExperience
(
experiences
);
if
(
experiences
.
size
()>
0
)
dto
.
setZpglRcxxExperience
(
experiences
);
//教育经历
//教育经历
List
<
ZpglRcxxStudy
>
study
=
ZpglRcxxStudy
.
builder
().
build
()
List
<
ZpglRcxxStudy
>
study
=
ZpglRcxxStudy
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxStudy
>()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxStudy
>()
.
lambda
().
eq
(
ZpglRcxxStudy:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
.
lambda
().
eq
(
ZpglRcxxStudy:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxStudy
(
study
);
if
(
study
.
size
()>
0
)
dto
.
setZpglRcxxStudy
(
study
);
//家庭资料
//家庭资料
List
<
ZpglRcxxJtzl
>
jtzl
=
ZpglRcxxJtzl
.
builder
().
build
()
List
<
ZpglRcxxJtzl
>
jtzl
=
ZpglRcxxJtzl
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxJtzl
>()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxJtzl
>()
.
lambda
().
eq
(
ZpglRcxxJtzl:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
.
lambda
().
eq
(
ZpglRcxxJtzl:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxJtzls
(
jtzl
);
if
(
jtzl
.
size
()>
0
)
dto
.
setZpglRcxxJtzls
(
jtzl
);
return
ResultUtil
.
data
(
dto
,
"查询成功"
);
return
ResultUtil
.
data
(
dto
,
"查询成功"
);
}
}
...
...
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
View file @
8b594bf0
...
@@ -131,6 +131,13 @@ public class InterviewApplicationDto implements Serializable {
...
@@ -131,6 +131,13 @@ public class InterviewApplicationDto implements Serializable {
*/
*/
@ApiModelProperty
(
value
=
"详细地址"
)
@ApiModelProperty
(
value
=
"详细地址"
)
private
String
address
;
private
String
address
;
/**
* 现居住地详址
*/
@ApiModelProperty
(
value
=
"现居住地详址"
)
private
String
grAddress
;
/**
/**
* 是否结婚:0否,1是
* 是否结婚: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