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
a7a93bb3
Commit
a7a93bb3
authored
Mar 18, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
招聘 h5填面试申请接口
parent
4443db14
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
363 additions
and
2 deletions
+363
-2
src/main/java/cn/timer/api/bean/zpgl/ZpglRcxx.java
+1
-1
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
+4
-1
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
+135
-0
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
+223
-0
No files found.
src/main/java/cn/timer/api/bean/zpgl/ZpglRcxx.java
View file @
a7a93bb3
...
@@ -178,7 +178,7 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
...
@@ -178,7 +178,7 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
* 病史1有:具体说明
* 病史1有:具体说明
*/
*/
@ApiModelProperty
(
value
=
"具体说明"
)
@ApiModelProperty
(
value
=
"具体说明"
)
private
Integer
medicalDetail
;
private
String
medicalDetail
;
/**
/**
* 待遇要求(税前)单位元/月
* 待遇要求(税前)单位元/月
*/
*/
...
...
src/main/java/cn/timer/api/config/interceptor/WebSecurityConfig.java
View file @
a7a93bb3
...
@@ -49,7 +49,10 @@ public class WebSecurityConfig implements WebMvcConfigurer {
...
@@ -49,7 +49,10 @@ public class WebSecurityConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"/v2/api-docs"
)
.
excludePathPatterns
(
"/v2/api-docs"
)
.
excludePathPatterns
(
"/druid/login*"
)
.
excludePathPatterns
(
"/druid/login*"
)
.
excludePathPatterns
(
"/app/**"
)
.
excludePathPatterns
(
"/app/**"
)
.
excludePathPatterns
(
"/webjars/**"
);
.
excludePathPatterns
(
"/webjars/**"
)
.
excludePathPatterns
(
"/zpgl/h5/**"
)
.
excludePathPatterns
(
"/yggl/mz/*"
)
.
excludePathPatterns
(
"/yggl/sysRegion"
);
// registry.addInterceptor(getSessionInterceptor()).addPathPatterns("/**").excludePathPatterns("/swagger-ui*");
// registry.addInterceptor(getSessionInterceptor()).addPathPatterns("/**").excludePathPatterns("/swagger-ui*");
}
}
...
...
src/main/java/cn/timer/api/controller/zpgl/ZpglH5Controller.java
0 → 100644
View file @
a7a93bb3
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.aspect.lang.annotation.Log
;
import
cn.timer.api.aspect.lang.enums.BusinessType
;
import
cn.timer.api.bean.zpgl.*
;
import
cn.timer.api.dto.zpgl.InterviewApplicationDto
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.*
;
import
javax.transaction.Transactional
;
import
java.util.List
;
@Api
(
tags
=
"招聘管理"
)
@Transactional
(
rollbackOn
=
Exception
.
class
)
@RestController
@RequestMapping
(
value
=
"/zpgl/h5"
)
public
class
ZpglH5Controller
{
/**
* 添加面试申请
* @param
* @return
*/
@RequestMapping
(
"/add_interview_application"
)
@ApiOperation
(
value
=
"添加面试申请"
,
httpMethod
=
"POST"
,
notes
=
"添加面试申请"
)
@Log
(
title
=
"addInterviewApplication"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
Object
>
addInterviewApplication
(
@Validated
@RequestBody
InterviewApplicationDto
interviewApplicationDto
)
{
System
.
out
.
println
(
interviewApplicationDto
);
ZpglRcxx
zpglRcxx
=
new
ZpglRcxx
();
//复制到 ZpglRcxx 实体对象
BeanUtils
.
copyProperties
(
interviewApplicationDto
,
zpglRcxx
);
zpglRcxx
.
insertOrUpdate
();
//添加紧急联系人
if
(
interviewApplicationDto
.
getZpglRcxxLxxxb
()
!=
null
){
ZpglRcxxLxxxb
zpglRcxxLxxxb
=
interviewApplicationDto
.
getZpglRcxxLxxxb
();
zpglRcxxLxxxb
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
zpglRcxxLxxxb
.
insertOrUpdate
();
}
//新增/修改工作经验
if
(
interviewApplicationDto
.
getZpglRcxxExperience
().
size
()>
0
){
List
<
ZpglRcxxExperience
>
experiences
=
interviewApplicationDto
.
getZpglRcxxExperience
();
for
(
ZpglRcxxExperience
experience
:
experiences
){
if
(
experience
.
getCompany
()
!=
null
){
experience
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
experience
.
insertOrUpdate
();
}
}
}
//新增/修改教育经历
if
(
interviewApplicationDto
.
getZpglRcxxStudy
().
size
()>
0
){
List
<
ZpglRcxxStudy
>
zpglRcxxStudys
=
interviewApplicationDto
.
getZpglRcxxStudy
();
for
(
ZpglRcxxStudy
study
:
zpglRcxxStudys
){
if
(
study
.
getSchoolName
()
!=
null
){
study
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
study
.
insertOrUpdate
();
}
}
}
//新增/修改家庭资料
if
(
interviewApplicationDto
.
getZpglRcxxJtzls
().
size
()>
0
){
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
=
interviewApplicationDto
.
getZpglRcxxJtzls
();
for
(
ZpglRcxxJtzl
jtzl
:
zpglRcxxJtzls
){
if
(
jtzl
.
getName
()
!=
null
){
jtzl
.
setZpglRcxxId
(
zpglRcxx
.
getId
());
jtzl
.
insertOrUpdate
();
}
}
}
return
ResultUtil
.
success
();
}
/**
* 查询面试申请信息
* @param
* @return
*/
@RequestMapping
(
"/interview_application_info/{mobile}"
)
@ApiOperation
(
value
=
"查询面试申请信息"
,
httpMethod
=
"GET"
,
notes
=
"查询面试申请信息"
)
@Log
(
title
=
"interviewApplicationIofo"
,
businessType
=
BusinessType
.
INSERT_UPDATE
)
public
Result
<
InterviewApplicationDto
>
interviewApplicationIofo
(
@PathVariable
String
mobile
)
{
System
.
out
.
println
(
mobile
);
if
(
mobile
==
null
||
""
.
equals
(
mobile
)){
return
ResultUtil
.
error
(
"手机号不能为空"
);
}
InterviewApplicationDto
dto
=
new
InterviewApplicationDto
();
List
<
ZpglRcxx
>
zpglRcxxes
=
ZpglRcxx
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxx
>().
lambda
()
.
eq
(
ZpglRcxx:
:
getMobile
,
mobile
));
if
(
zpglRcxxes
.
size
()
==
0
){
return
ResultUtil
.
error
(
"没有简历信息"
);
}
ZpglRcxx
zpglRcxx
=
zpglRcxxes
.
get
(
0
);
//复制到dto
BeanUtils
.
copyProperties
(
zpglRcxx
,
dto
);
//联系人信息
List
<
ZpglRcxxLxxxb
>
zpglRcxxLxxxbs
=
ZpglRcxxLxxxb
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
ZpglRcxxLxxxb
>()
.
lambda
().
select
(
ZpglRcxxLxxxb:
:
getId
,
ZpglRcxxLxxxb:
:
getLinkName
,
ZpglRcxxLxxxb:
:
getLinkMobile
)
.
eq
(
ZpglRcxxLxxxb:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxLxxxb
(
zpglRcxxLxxxbs
.
get
(
0
));
//工作经验
List
<
ZpglRcxxExperience
>
experiences
=
ZpglRcxxExperience
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxExperience
>()
.
lambda
().
eq
(
ZpglRcxxExperience:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxExperience
(
experiences
);
//教育经历
List
<
ZpglRcxxStudy
>
study
=
ZpglRcxxStudy
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxStudy
>()
.
lambda
().
eq
(
ZpglRcxxStudy:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxStudy
(
study
);
//家庭资料
List
<
ZpglRcxxJtzl
>
jtzl
=
ZpglRcxxJtzl
.
builder
().
build
()
.
selectList
(
new
QueryWrapper
<
ZpglRcxxJtzl
>()
.
lambda
().
eq
(
ZpglRcxxJtzl:
:
getZpglRcxxId
,
zpglRcxx
.
getId
()));
dto
.
setZpglRcxxJtzls
(
jtzl
);
return
ResultUtil
.
data
(
dto
,
"查询成功"
);
}
}
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
0 → 100644
View file @
a7a93bb3
package
cn
.
timer
.
api
.
dto
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglRcxxExperience
;
import
cn.timer.api.bean.zpgl.ZpglRcxxJtzl
;
import
cn.timer.api.bean.zpgl.ZpglRcxxLxxxb
;
import
cn.timer.api.bean.zpgl.ZpglRcxxStudy
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.validation.constraints.NotEmpty
;
import
java.io.Serializable
;
import
java.util.List
;
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
InterviewApplicationDto
implements
Serializable
{
/**
* 人才信息ID
*/
@ApiModelProperty
(
value
=
"人才信息ID"
)
private
Integer
id
;
/**
* 姓名
*/
@NotEmpty
(
message
=
"姓名号为空"
)
@ApiModelProperty
(
value
=
"姓名"
)
private
String
name
;
/**
* 手机
*/
@NotEmpty
(
message
=
"手机号为空"
)
@ApiModelProperty
(
value
=
"手机"
)
private
String
mobile
;
/**
* 邮件地址
*/
@ApiModelProperty
(
value
=
"邮件地址"
)
private
String
mail
;
/**
* 身份证号码
*/
@ApiModelProperty
(
value
=
"身份证号码"
)
private
String
idCard
;
/**
* 性别 1:男2:女
*/
@ApiModelProperty
(
value
=
"性别 1:男2:女"
)
private
Integer
sex
;
/**
* 微信
*/
@ApiModelProperty
(
value
=
"微信"
)
private
String
weixin
;
/**
* 身高CM
*/
@ApiModelProperty
(
value
=
"身高CM"
)
private
Integer
height
;
/**
* 体重KG
*/
@ApiModelProperty
(
value
=
"体重KG"
)
private
Integer
weight
;
/**
* 政治面貌
*/
@ApiModelProperty
(
value
=
"政治面貌"
)
private
String
face
;
/**
* 民族
*/
@ApiModelProperty
(
value
=
"民族"
)
private
Integer
nationClassId
;
/**
* 籍贯
*/
@ApiModelProperty
(
value
=
"籍贯"
)
private
String
nativePlace
;
/**
* 最高学历 1:小学;2:初中;3:高中;4:中专;5:大专;6:本科;7:研究生;8:硕士;9:博士
*/
@ApiModelProperty
(
value
=
"最高学历 1:小学;2:初中;3:高中;4:中专;5:大专;6:本科;7:研究生;8:硕士;9:博士"
)
private
String
highesteducation
;
/**
* 省名id
*/
@ApiModelProperty
(
value
=
"省名id"
)
private
String
provinceId
;
/**
* 省名
*/
@ApiModelProperty
(
value
=
"省名"
)
private
String
province
;
/**
* 区名id
*/
@ApiModelProperty
(
value
=
"区名id"
)
private
String
districtId
;
/**
* 区名
*/
@ApiModelProperty
(
value
=
"区名"
)
private
String
district
;
/**
* 城市id
*/
@ApiModelProperty
(
value
=
"城市id"
)
private
String
cityId
;
/**
* 城市
*/
@ApiModelProperty
(
value
=
"城市"
)
private
String
city
;
/**
* 详细地址
*/
@ApiModelProperty
(
value
=
"详细地址"
)
private
String
address
;
/**
* 是否结婚:0否,1是
*/
@ApiModelProperty
(
value
=
"是否结婚:0否,1是"
)
private
Integer
marryStatus
;
/**
* 语言 1:英语 2:粤语 3:普通话
* 列:1,2,3
*/
@ApiModelProperty
(
value
=
"语言 1:英语 2:粤语 3:普通话 "
)
private
String
language
;
/**
* 驾照 1:A照 2:B照 3:C照
*/
@ApiModelProperty
(
value
=
"驾照 1:A照 2:B照 3:C照"
)
private
Integer
drivingLicense
;
/**
* 病史 :0无,1有
*/
@ApiModelProperty
(
value
=
"病史 :0无,1有"
)
private
Integer
medicalHistory
;
/**
* 病史1有:具体说明
*/
@ApiModelProperty
(
value
=
"具体说明"
)
private
String
medicalDetail
;
/**
* 待遇要求(税前)单位元/月
*/
@ApiModelProperty
(
value
=
"待遇要求(税前)单位元/月"
)
private
Integer
salary
;
/**
* 求职状态:0离职,1在岗
*/
@ApiModelProperty
(
value
=
"求职状态:0离职,1在岗"
)
private
Integer
workStatus
;
/**
* 可到岗时间:0一周内 1两周内 2一个月内 3两个月内 4不确定
*/
@ApiModelProperty
(
value
=
"可到岗时间:0一周内 1两周内 2一个月内 3两个月内 4不确定"
)
private
Integer
workTimer
;
/**
* 爱好特长
*/
@ApiModelProperty
(
value
=
"爱好特长"
)
private
String
hobby
;
/**
* 受到奖励
*/
@ApiModelProperty
(
value
=
"受到奖励"
)
private
String
reward
;
/**
* 处分,违法,犯罪记录
*/
@ApiModelProperty
(
value
=
"处分,违法,犯罪记录"
)
private
String
record
;
/**
* 招聘渠道
*/
@ApiModelProperty
(
value
=
"招聘渠道"
)
private
String
recruitmentchannels
;
/**
* 联系人信息
*/
@ApiModelProperty
(
value
=
"联系人信息"
)
private
ZpglRcxxLxxxb
zpglRcxxLxxxb
;
/**
* 工作经验
*/
@ApiModelProperty
(
value
=
"工作经验"
)
private
List
<
ZpglRcxxExperience
>
zpglRcxxExperience
;
/**
* 教育经历
*/
@ApiModelProperty
(
value
=
"教育经历"
)
private
List
<
ZpglRcxxStudy
>
zpglRcxxStudy
;
/**
* 家庭资料
*/
@ApiModelProperty
(
value
=
"家庭资料"
)
private
List
<
ZpglRcxxJtzl
>
zpglRcxxJtzls
;
}
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