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
54bc5319
Commit
54bc5319
authored
Mar 28, 2022
by
284718418@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单个添加候选人
parent
68025ef7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
195 additions
and
8 deletions
+195
-8
src/main/java/cn/timer/api/bean/zpgl/ZpglRcxx.java
+3
-3
src/main/java/cn/timer/api/bean/zpgl/ZpglZpqd.java
+78
-0
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
+1
-1
src/main/java/cn/timer/api/controller/zpgl/ZpglZpqdController.java
+73
-0
src/main/java/cn/timer/api/dao/zpgl/ZpglZpqdMapper.java
+17
-0
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
+3
-3
src/main/resources/mapping/zpgl/ZpglRcxxMapper.xml
+1
-1
src/main/resources/mapping/zpgl/ZpglZpqdMapper.xml
+19
-0
No files found.
src/main/java/cn/timer/api/bean/zpgl/ZpglRcxx.java
View file @
54bc5319
...
...
@@ -208,10 +208,10 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
@ApiModelProperty
(
value
=
"处分,违法,犯罪记录"
)
private
String
record
;
/**
* 招聘渠道
* 招聘渠道
ID
*/
@ApiModelProperty
(
value
=
"招聘渠道"
)
private
String
recruitmentchannels
;
@ApiModelProperty
(
value
=
"招聘渠道
ID
"
)
private
Integer
zpglZpqdId
;
/**
* 文件名
*/
...
...
src/main/java/cn/timer/api/bean/zpgl/ZpglZpqd.java
0 → 100644
View file @
54bc5319
package
cn
.
timer
.
api
.
bean
.
zpgl
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
/**
* 招聘管理招聘渠道字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-28 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"zpgl_zpqd"
)
@Data
public
class
ZpglZpqd
extends
Model
<
ZpglZpqd
>
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* 工作地点
*/
@ApiModelProperty
(
value
=
"工作地点"
)
private
String
zpqdName
;
/**
* 逻辑删除标记0.未删除 1.删除
*/
@ApiModelProperty
(
value
=
"逻辑删除标记0.未删除 1.删除"
)
private
Integer
deleteFlag
;
/**
* 创建者
*/
@ApiModelProperty
(
value
=
"创建者"
)
private
Integer
createUserId
;
/**
* 更新者
*/
@ApiModelProperty
(
value
=
"更新者"
)
private
Integer
updateUserId
;
/**
* 组织机构代码
*/
@ApiModelProperty
(
value
=
"组织机构代码"
)
private
Integer
orgCode
;
/**
* 创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createTime
;
/**
* 更新时间
*/
@ApiModelProperty
(
value
=
"更新时间"
)
private
Date
updateTime
;
}
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
View file @
54bc5319
...
...
@@ -150,7 +150,7 @@ public class ZpglController {
* @return
*/
@GetMapping
(
value
=
"/zwxx/{deleteFlag}"
)
@ApiOperation
(
value
=
"2.职位信息"
,
httpMethod
=
"GET"
,
notes
=
"职位信息"
)
@ApiOperation
(
value
=
"2.职位信息"
,
httpMethod
=
"GET"
,
notes
=
"职位信息
deleteFlag:0
"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
zwxx
(
@CurrentUser
UserBean
userBean
,
@PathVariable
Integer
deleteFlag
)
{
try
{
...
...
src/main/java/cn/timer/api/controller/zpgl/ZpglZpqdController.java
0 → 100644
View file @
54bc5319
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglZpqd
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.web.bind.annotation.*
;
import
javax.transaction.Transactional
;
import
java.util.List
;
/**
* 招聘管理
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-28 15:14:40
*/
@Api
(
tags
=
"招聘管理"
)
@Transactional
(
rollbackOn
=
Exception
.
class
)
@RestController
@RequestMapping
(
value
=
"/zpgl"
,
produces
=
{
"application/json"
})
public
class
ZpglZpqdController
{
/**
* 招聘-招聘渠道字典
*
* @param
* @return
*/
@GetMapping
(
value
=
"/zpqd"
)
@ApiOperation
(
value
=
"1.招聘渠道字典"
,
httpMethod
=
"GET"
,
notes
=
"招聘渠道字典"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
zpqd
(
@CurrentUser
UserBean
userBean
)
{
try
{
QueryWrapper
<
ZpglZpqd
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
ZpglZpqd:
:
getDeleteFlag
,
0
).
eq
(
ZpglZpqd:
:
getOrgCode
,
userBean
.
getOrgCode
());
List
<
ZpglZpqd
>
zpglZpqd
=
ZpglZpqd
.
builder
().
build
().
selectList
(
queryWrapper
);
return
ResultUtil
.
data
(
zpglZpqd
,
"查询成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-招聘渠道字典失败"
);
}
}
/**
* 招聘-添加招聘渠道
*
* @param
* @return
*/
@PostMapping
(
value
=
"/zpqd/save"
)
@ApiOperation
(
value
=
"2.招聘-添加招聘渠道"
,
httpMethod
=
"POST"
,
notes
=
"招聘-添加招聘渠道"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
save
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglZpqd
zpglZpqd
)
{
try
{
zpglZpqd
.
setCreateUserId
(
userBean
.
getEmpNum
());
zpglZpqd
.
setUpdateUserId
(
userBean
.
getEmpNum
());
zpglZpqd
.
setOrgCode
(
userBean
.
getOrgCode
());
return
zpglZpqd
.
insert
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-添加招聘渠道失败"
);
}
}
}
src/main/java/cn/timer/api/dao/zpgl/ZpglZpqdMapper.java
0 → 100644
View file @
54bc5319
package
cn
.
timer
.
api
.
dao
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglZpqd
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
* 招聘管理职级字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-28 15:14:40
*/
@Repository
public
interface
ZpglZpqdMapper
extends
BaseMapper
<
ZpglZpqd
>
{
}
src/main/java/cn/timer/api/dto/zpgl/InterviewApplicationDto.java
View file @
54bc5319
...
...
@@ -198,10 +198,10 @@ public class InterviewApplicationDto implements Serializable {
@ApiModelProperty
(
value
=
"处分,违法,犯罪记录"
)
private
String
record
;
/**
* 招聘渠道
* 招聘渠道
ID
*/
@ApiModelProperty
(
value
=
"招聘渠道"
)
private
String
recruitmentchannels
;
@ApiModelProperty
(
value
=
"招聘渠道
ID
"
)
private
Integer
zpglZpqdId
;
/**
* 联系人信息
...
...
src/main/resources/mapping/zpgl/ZpglRcxxMapper.xml
View file @
54bc5319
...
...
@@ -39,7 +39,7 @@
<result
property=
"hobby"
column=
"hobby"
/>
<result
property=
"reward"
column=
"reward"
/>
<result
property=
"record"
column=
"record"
/>
<result
property=
"
recruitmentchannels"
column=
"recruitmentchannels
"
/>
<result
property=
"
zpglZpqdId"
column=
"zpgl_zpqd_id
"
/>
<result
property=
"fileName"
column=
"file_name"
/>
<result
property=
"filePath"
column=
"file_path"
/>
<result
property=
"remarks"
column=
"remarks"
/>
...
...
src/main/resources/mapping/zpgl/ZpglZpqdMapper.xml
0 → 100644
View file @
54bc5319
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.timer.api.dao.zpgl.ZpglZpqdMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.zpgl.ZpglZpqd"
id=
"zpglZpqdMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zpqdName"
column=
"zj_name"
/>
<result
property=
"deleteFlag"
column=
"delete_flag"
/>
<result
property=
"createUserId"
column=
"create_user_id"
/>
<result
property=
"updateUserId"
column=
"update_user_id"
/>
<result
property=
"orgCode"
column=
"org_code"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
</resultMap>
</mapper>
\ No newline at end of file
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