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
fa885b8a
Commit
fa885b8a
authored
Mar 18, 2022
by
龙于生
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/feature_20220305_V2.3' into feature_20220305_V2.3
parents
8b594bf0
2cdcb969
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
800 additions
and
24 deletions
+800
-24
src/main/java/cn/timer/api/bean/zpgl/ZpglCompany.java
+77
-0
src/main/java/cn/timer/api/bean/zpgl/ZpglGzdd.java
+107
-0
src/main/java/cn/timer/api/bean/zpgl/ZpglRcxx.java
+15
-0
src/main/java/cn/timer/api/bean/zpgl/ZpglZj.java
+77
-0
src/main/java/cn/timer/api/controller/zpgl/ZpglCompanyController.java
+73
-0
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
+0
-0
src/main/java/cn/timer/api/controller/zpgl/ZpglFailController.java
+16
-22
src/main/java/cn/timer/api/controller/zpgl/ZpglGzddController.java
+97
-0
src/main/java/cn/timer/api/controller/zpgl/ZpglZjController.java
+73
-0
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglMslcLogService.java
+1
-1
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglMslcLogServiceImpl.java
+1
-1
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglService.java
+22
-0
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
+122
-0
src/main/java/cn/timer/api/dao/zpgl/ZpglCompanyMapper.java
+17
-0
src/main/java/cn/timer/api/dao/zpgl/ZpglGzddMapper.java
+18
-0
src/main/java/cn/timer/api/dao/zpgl/ZpglZjMapper.java
+18
-0
src/main/resources/mapping/zpgl/ZpglCompanyMapper.xml
+19
-0
src/main/resources/mapping/zpgl/ZpglGzddMapper.xml
+25
-0
src/main/resources/mapping/zpgl/ZpglRcxxMapper.xml
+3
-0
src/main/resources/mapping/zpgl/ZpglZjMapper.xml
+19
-0
No files found.
src/main/java/cn/timer/api/bean/zpgl/ZpglCompany.java
0 → 100644
View file @
fa885b8a
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-17 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"zpgl_company"
)
@Data
public
class
ZpglCompany
extends
Model
<
ZpglCompany
>
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* 公司名称
*/
@ApiModelProperty
(
value
=
"公司名称"
)
private
String
companyName
;
/**
* 逻辑删除标记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/bean/zpgl/ZpglGzdd.java
0 → 100644
View file @
fa885b8a
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-17 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"zpgl_gzdd"
)
@Data
public
class
ZpglGzdd
extends
Model
<
ZpglGzdd
>
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* 省名
*/
@ApiModelProperty
(
value
=
"省名"
)
private
String
provinceId
;
/**
* 省名
*/
@ApiModelProperty
(
value
=
"省名"
)
private
String
province
;
/**
* 区名
*/
@ApiModelProperty
(
value
=
"区名"
)
private
String
districtId
;
/**
* 区名
*/
@ApiModelProperty
(
value
=
"区名"
)
private
String
district
;
/**
* 城市
*/
@ApiModelProperty
(
value
=
"城市"
)
private
String
cityId
;
/**
* 城市
*/
@ApiModelProperty
(
value
=
"城市"
)
private
String
city
;
/**
* 工作地点
*/
@ApiModelProperty
(
value
=
"工作地点"
)
private
String
gzddName
;
/**
* 逻辑删除标记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/bean/zpgl/ZpglRcxx.java
View file @
fa885b8a
...
...
@@ -275,6 +275,21 @@ public class ZpglRcxx extends Model<ZpglRcxx> {
@ApiModelProperty
(
value
=
"对应淘汰原因字典ID"
)
private
Integer
zpglFailId
;
/**
* 对应合同公司字典ID
*/
@ApiModelProperty
(
value
=
"对应合同公司字典ID"
)
private
Integer
zpglCompanyId
;
/**
* 对应职级字典ID
*/
@ApiModelProperty
(
value
=
"对应职级字典ID"
)
private
Integer
zpglZjId
;
/**
* 对应工作地点字典ID
*/
@ApiModelProperty
(
value
=
"对应工作地点字典ID"
)
private
Integer
zpglGzddId
;
/**
* 面试官id
*/
@ApiModelProperty
(
value
=
"面试官id"
)
...
...
src/main/java/cn/timer/api/bean/zpgl/ZpglZj.java
0 → 100644
View file @
fa885b8a
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-17 15:14:40
*/
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table
(
name
=
"zpgl_zj"
)
@Data
public
class
ZpglZj
extends
Model
<
ZpglZj
>
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键ID
*/
@Id
@GeneratedValue
@TableId
(
type
=
IdType
.
AUTO
)
@ApiModelProperty
(
value
=
"编号"
)
private
Integer
id
;
/**
* 职级名称
*/
@ApiModelProperty
(
value
=
"职级名称"
)
private
String
zjName
;
/**
* 逻辑删除标记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/ZpglCompanyController.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglCompany
;
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-18 15:14:40
*/
@Api
(
tags
=
"招聘管理"
)
@Transactional
(
rollbackOn
=
Exception
.
class
)
@RestController
@RequestMapping
(
value
=
"/zpgl"
,
produces
=
{
"application/json"
})
public
class
ZpglCompanyController
{
/**
* 招聘-合同公司字典
*
* @param
* @return
*/
@GetMapping
(
value
=
"/conpany"
)
@ApiOperation
(
value
=
"1.合同公司字典"
,
httpMethod
=
"GET"
,
notes
=
"合同公司字典"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
fail
(
@CurrentUser
UserBean
userBean
)
{
try
{
QueryWrapper
<
ZpglCompany
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
ZpglCompany:
:
getDeleteFlag
,
0
).
eq
(
ZpglCompany:
:
getOrgCode
,
userBean
.
getOrgCode
());
List
<
ZpglCompany
>
zpglCompany
=
ZpglCompany
.
builder
().
build
().
selectList
(
queryWrapper
);
return
ResultUtil
.
data
(
zpglCompany
,
"查询成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-合同公司字典失败"
);
}
}
/**
* 招聘-添加合同公司
*
* @param
* @return
*/
@PostMapping
(
value
=
"/company/save"
)
@ApiOperation
(
value
=
"2.招聘-添加合同公司"
,
httpMethod
=
"POST"
,
notes
=
"招聘-添加合同公司"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
save
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglCompany
zpglCompany
)
{
try
{
zpglCompany
.
setCreateUserId
(
userBean
.
getEmpNum
());
zpglCompany
.
setUpdateUserId
(
userBean
.
getEmpNum
());
zpglCompany
.
setOrgCode
(
userBean
.
getOrgCode
());
return
zpglCompany
.
insert
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-添加合同公司失败"
);
}
}
}
src/main/java/cn/timer/api/controller/zpgl/ZpglController.java
View file @
fa885b8a
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/zpgl/ZpglFailController.java
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglFail
;
import
cn.timer.api.bean.zpgl.ZpglMslcLog
;
import
cn.timer.api.bean.zpgl.ZpglRcxx
;
import
cn.timer.api.bean.zpgl.ZpglZwxx
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.enuminterface.JxglEnumInterface
;
import
cn.timer.api.controller.zpgl.sevice.ZpglMslcLogService
;
import
cn.timer.api.dao.zpgl.ZpglMslcLogMapper
;
import
cn.timer.api.dto.zpgl.ZpglRcxxDto
;
import
cn.timer.api.config.exception.CustomException
;
import
cn.timer.api.utils.Result
;
import
cn.timer.api.utils.ResultUtil
;
import
cn.timer.api.utils.query.BaseQuery
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.transaction.Transactional
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* 招聘管理
*
...
...
@@ -41,11 +29,6 @@ import java.util.Map;
@RequestMapping
(
value
=
"/zpgl"
,
produces
=
{
"application/json"
})
public
class
ZpglFailController
{
@Autowired
private
ZpglMslcLogMapper
zpglMslcLogMapper
;
@Autowired
private
ZpglMslcLogService
zpglMslcLogService
;
/**
* 招聘-淘汰原因字典
*
...
...
@@ -55,12 +38,18 @@ public class ZpglFailController {
@GetMapping
(
value
=
"/fail"
)
@ApiOperation
(
value
=
"1.淘汰原因字典"
,
httpMethod
=
"GET"
,
notes
=
"淘汰原因字典"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
fail
(
@CurrentUser
UserBean
userBean
,
@ApiParam
(
"招聘状态"
)
@RequestParam
(
required
=
false
)
Integer
status
)
{
public
Result
<
Object
>
fail
(
@CurrentUser
UserBean
userBean
,
@ApiParam
(
"招聘状态"
)
@RequestParam
(
required
=
false
)
Integer
status
)
{
try
{
QueryWrapper
<
ZpglFail
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
ZpglFail:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
ZpglFail:
:
getZpglRcxxStatus
,
status
);
queryWrapper
.
lambda
().
eq
(
ZpglFail:
:
getDeleteFlag
,
0
).
eq
(
ZpglFail:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
ZpglFail:
:
getZpglRcxxStatus
,
status
);
List
<
ZpglFail
>
zpglFail
=
ZpglFail
.
builder
().
build
().
selectList
(
queryWrapper
);
return
ResultUtil
.
data
(
zpglFail
,
"查询成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-淘汰原因字典失败"
);
}
}
/**
* 招聘-添加淘汰原因
*
...
...
@@ -71,10 +60,15 @@ public class ZpglFailController {
@ApiOperation
(
value
=
"2.招聘-添加淘汰原因"
,
httpMethod
=
"POST"
,
notes
=
"招聘-添加淘汰原因"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
save
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglFail
zpglFail
)
{
try
{
zpglFail
.
setCreateUserId
(
userBean
.
getEmpNum
());
zpglFail
.
setUpdateUserId
(
userBean
.
getEmpNum
());
zpglFail
.
setOrgCode
(
userBean
.
getOrgCode
());
return
zpglFail
.
insert
()?
ResultUtil
.
success
():
ResultUtil
.
error
();
return
zpglFail
.
insert
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-添加淘汰原因失败"
);
}
}
}
src/main/java/cn/timer/api/controller/zpgl/ZpglGzddController.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.bean.clazz.SysRegion
;
import
cn.timer.api.bean.zpgl.ZpglGzdd
;
import
cn.timer.api.bean.zpgl.ZpglZj
;
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.util.StringUtils
;
import
org.springframework.web.bind.annotation.*
;
import
javax.transaction.Transactional
;
import
java.util.List
;
/**
* 招聘管理
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-18 15:14:40
*/
@Api
(
tags
=
"招聘管理"
)
@Transactional
(
rollbackOn
=
Exception
.
class
)
@RestController
@RequestMapping
(
value
=
"/zpgl"
,
produces
=
{
"application/json"
})
public
class
ZpglGzddController
{
/**
* 招聘-工作地点
*
* @param
* @return
*/
@GetMapping
(
value
=
"/gzdd"
)
@ApiOperation
(
value
=
"1.工作地点字典"
,
httpMethod
=
"GET"
,
notes
=
"工作地点字典"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
fail
(
@CurrentUser
UserBean
userBean
)
{
try
{
QueryWrapper
<
ZpglGzdd
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
ZpglGzdd:
:
getDeleteFlag
,
0
).
eq
(
ZpglGzdd:
:
getOrgCode
,
userBean
.
getOrgCode
());
List
<
ZpglGzdd
>
zpglGzdd
=
ZpglGzdd
.
builder
().
build
().
selectList
(
queryWrapper
);
zpglGzdd
.
forEach
(
zg
->
{
zg
.
setGzddName
(
zg
.
getProvince
()+
"/"
+
zg
.
getCity
()+
"/"
+
zg
.
getDistrict
()+
"/"
+
zg
.
getGzddName
());
});
return
ResultUtil
.
data
(
zpglGzdd
,
"查询成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-工作地点失败"
);
}
}
/**
* 招聘-添加职级
*
* @param
* @return
*/
@PostMapping
(
value
=
"/gzdd/save"
)
@ApiOperation
(
value
=
"2.招聘-添加工作地点"
,
httpMethod
=
"POST"
,
notes
=
"招聘-添加工作地点"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
save
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglGzdd
zpglGzdd
)
{
try
{
if
(
StringUtils
.
isEmpty
(
zpglGzdd
.
getDistrictId
())
||
zpglGzdd
.
getDistrictId
().
length
()
<=
0
){
return
ResultUtil
.
error
();
}
SysRegion
district
=
getSysRegion
(
Integer
.
parseInt
(
zpglGzdd
.
getDistrictId
()));
if
(
district
!=
null
)
{
zpglGzdd
.
setDistrict
(
district
.
getRegionName
());
SysRegion
city
=
getSysRegion
(
district
.
getRegionCode
());
zpglGzdd
.
setCity
(
city
.
getRegionName
());
zpglGzdd
.
setCityId
(
city
.
getKeyId
().
toString
());
SysRegion
province
=
getSysRegion
(
city
.
getRegionCode
());
zpglGzdd
.
setProvinceId
(
province
.
getKeyId
().
toString
());
zpglGzdd
.
setProvince
(
province
.
getRegionName
());
}
zpglGzdd
.
setCreateUserId
(
userBean
.
getEmpNum
());
zpglGzdd
.
setUpdateUserId
(
userBean
.
getEmpNum
());
zpglGzdd
.
setOrgCode
(
userBean
.
getOrgCode
());
return
zpglGzdd
.
insert
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-添加职级失败"
);
}
}
private
SysRegion
getSysRegion
(
Integer
keyId
)
{
return
SysRegion
.
builder
().
build
()
.
selectOne
(
new
QueryWrapper
<
SysRegion
>().
lambda
().
eq
(
SysRegion:
:
getKeyId
,
keyId
).
select
(
SysRegion:
:
getRegionName
,
SysRegion:
:
getKeyId
,
SysRegion:
:
getZipCode
,
SysRegion:
:
getRegionCode
));
}
}
src/main/java/cn/timer/api/controller/zpgl/ZpglZjController.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglZj
;
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-18 15:14:40
*/
@Api
(
tags
=
"招聘管理"
)
@Transactional
(
rollbackOn
=
Exception
.
class
)
@RestController
@RequestMapping
(
value
=
"/zpgl"
,
produces
=
{
"application/json"
})
public
class
ZpglZjController
{
/**
* 招聘-职级字典
*
* @param
* @return
*/
@GetMapping
(
value
=
"/zj"
)
@ApiOperation
(
value
=
"1.职级字典"
,
httpMethod
=
"GET"
,
notes
=
"职级字典"
)
@ApiOperationSupport
(
order
=
1
)
public
Result
<
Object
>
fail
(
@CurrentUser
UserBean
userBean
)
{
try
{
QueryWrapper
<
ZpglZj
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
lambda
().
eq
(
ZpglZj:
:
getDeleteFlag
,
0
).
eq
(
ZpglZj:
:
getOrgCode
,
userBean
.
getOrgCode
());
List
<
ZpglZj
>
zpglCompany
=
ZpglZj
.
builder
().
build
().
selectList
(
queryWrapper
);
return
ResultUtil
.
data
(
zpglCompany
,
"查询成功"
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-职级字典失败"
);
}
}
/**
* 招聘-添加职级
*
* @param
* @return
*/
@PostMapping
(
value
=
"/zj/save"
)
@ApiOperation
(
value
=
"2.招聘-添加职级"
,
httpMethod
=
"POST"
,
notes
=
"招聘-添加职级"
)
@ApiOperationSupport
(
order
=
2
)
public
Result
<
Object
>
save
(
@CurrentUser
UserBean
userBean
,
@RequestBody
ZpglZj
zpglZj
)
{
try
{
zpglZj
.
setCreateUserId
(
userBean
.
getEmpNum
());
zpglZj
.
setUpdateUserId
(
userBean
.
getEmpNum
());
zpglZj
.
setOrgCode
(
userBean
.
getOrgCode
());
return
zpglZj
.
insert
()
?
ResultUtil
.
success
()
:
ResultUtil
.
error
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
throw
new
CustomException
(
"招聘-添加职级失败"
);
}
}
}
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglMslcLogService.java
View file @
fa885b8a
...
...
@@ -14,7 +14,7 @@ public interface ZpglMslcLogService {
* @param zpglMslcLog
* @return
*/
boolean
save
ZpglMslcLog
(
ZpglMslcLog
zpglMslcLog
);
boolean
add
ZpglMslcLog
(
ZpglMslcLog
zpglMslcLog
);
}
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglMslcLogServiceImpl.java
View file @
fa885b8a
...
...
@@ -16,7 +16,7 @@ public class ZpglMslcLogServiceImpl implements ZpglMslcLogService {
@Override
public
boolean
save
ZpglMslcLog
(
ZpglMslcLog
zpglMslcLog
)
{
public
boolean
add
ZpglMslcLog
(
ZpglMslcLog
zpglMslcLog
)
{
return
zpglMslcLog
.
insert
();
}
}
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglService.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
.
sevice
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.dto.zpgl.ZpglRcxxDto
;
/**
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022/3/18
*/
public
interface
ZpglService
{
/**
* 招聘-变更人才信息状态
* 添加面试流程记录
* @param userBean zpglRcxxDto
* @return
*/
boolean
updateZpglRcxx
(
UserBean
userBean
,
ZpglRcxxDto
zpglRcxxDto
);
}
src/main/java/cn/timer/api/controller/zpgl/sevice/ZpglServiceImpl.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
controller
.
zpgl
.
sevice
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.zpgl.ZpglFail
;
import
cn.timer.api.bean.zpgl.ZpglMslcLog
;
import
cn.timer.api.bean.zpgl.ZpglRcxx
;
import
cn.timer.api.config.annotation.UserBean
;
import
cn.timer.api.config.enuminterface.JxglEnumInterface
;
import
cn.timer.api.dto.zpgl.ZpglRcxxDto
;
import
cn.timer.api.utils.ZpglMessageTemplate
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.StringUtils
;
import
javax.transaction.Transactional
;
import
java.text.SimpleDateFormat
;
/**
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022/3/18
*/
@Service
@Transactional
(
rollbackOn
=
Exception
.
class
)
public
class
ZpglServiceImpl
implements
ZpglService
{
@Autowired
private
ZpglMslcLogService
zpglMslcLogService
;
@Override
public
boolean
updateZpglRcxx
(
UserBean
userBean
,
ZpglRcxxDto
zpglRcxxDto
)
{
boolean
count
=
false
;
ZpglRcxx
zpglRcxx
=
ZpglRcxx
.
builder
().
id
(
zpglRcxxDto
.
getId
()).
status
(
zpglRcxxDto
.
getStatus
()).
build
();
ZpglMslcLog
zpglMslcLog
=
new
ZpglMslcLog
();
zpglMslcLog
.
setZpglRcxxId
(
zpglRcxxDto
.
getId
());
zpglMslcLog
.
setUserId
(
userBean
.
getEmpNum
());
zpglMslcLog
.
setUserName
(
userBean
.
getQyzxEmpLogin
().
getUsername
());
String
detail
=
""
;
switch
(
zpglRcxxDto
.
getStatus
())
{
case
2
:
//初筛通过 填充字段
zpglRcxx
.
setIfrck
(
zpglRcxxDto
.
getIfrck
());
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
FILTER_PASS
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
break
;
case
3
:
//安排面试 填充字段
zpglRcxx
.
setInterviewNum
(
zpglRcxxDto
.
getInterviewNum
());
zpglRcxx
.
setInterviewWay
(
zpglRcxxDto
.
getInterviewWay
());
zpglRcxx
.
setInterviewerId
(
zpglRcxxDto
.
getInterviewerId
());
zpglRcxx
.
setInterviewTime
(
zpglRcxxDto
.
getInterviewTime
());
zpglRcxx
.
setNoticeWay
(
zpglRcxxDto
.
getNoticeWay
());
YgglMainEmp
ygglMainEmp
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
select
(
"name"
).
lambda
().
eq
(
YgglMainEmp:
:
getEmpNum
,
zpglRcxxDto
.
getInterviewerId
()));
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
INTERVIEW
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
(),
zpglRcxxDto
.
getInterviewNum
().
toString
(),
new
SimpleDateFormat
(
"yyyy-MM-dd' 'HH:mm:ss"
).
format
(
zpglRcxxDto
.
getInterviewTime
()),
ygglMainEmp
.
getName
()});
break
;
case
4
:
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
INTERVIEWED
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
(),
zpglRcxxDto
.
getInterviewNum
().
toString
()});
break
;
case
5
:
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
INTERVIEW_PASS
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
break
;
case
6
:
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
EMPLOY
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
break
;
case
7
:
//发送offer 填充字段
zpglRcxx
.
setBmgwId
(
zpglRcxxDto
.
getBmgwId
());
zpglRcxx
.
setJobType
(
zpglRcxxDto
.
getJobType
());
zpglRcxx
.
setYjrzTime
(
zpglRcxxDto
.
getYjrzTime
());
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
OFFER
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
//发送offer
break
;
case
8
:
//待入职 填充字段
zpglRcxx
.
setBmgwId
(
zpglRcxxDto
.
getBmgwId
());
zpglRcxx
.
setJobType
(
zpglRcxxDto
.
getJobType
());
zpglRcxx
.
setYjrzTime
(
zpglRcxxDto
.
getYjrzTime
());
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
WAIT
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
break
;
case
9
:
//淘汰 填充字段
zpglRcxx
.
setZpglFailId
(
zpglRcxxDto
.
getZpglFailId
());
zpglRcxx
.
setRemarks
(
zpglRcxxDto
.
getRemarks
());
ZpglFail
zpglFail
=
ZpglFail
.
builder
().
id
(
zpglRcxxDto
.
getZpglFailId
()).
build
().
selectById
();
String
messageTemplate
=
ZpglMessageTemplate
.
ENTRYING
;
if
(!
StringUtils
.
isEmpty
(
zpglFail
))
{
if
(
zpglFail
.
getZpglRcxxStatus
().
equals
(
JxglEnumInterface
.
ResumeStatus
.
INTERVIEW_PASS
.
getType
()))
{
messageTemplate
=
ZpglMessageTemplate
.
INTERVIEWED_ENTRYING
;
}
if
(
zpglFail
.
getZpglRcxxStatus
().
equals
(
JxglEnumInterface
.
ResumeStatus
.
OFFER
.
getType
()))
{
messageTemplate
=
ZpglMessageTemplate
.
OFFER_ENTRYING
;
}
detail
=
ZpglMessageTemplate
.
print
(
messageTemplate
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
(),
zpglFail
.
getFailCause
(),
zpglRcxxDto
.
getRemarks
()});
}
break
;
case
10
:
//确认入职
detail
=
ZpglMessageTemplate
.
print
(
ZpglMessageTemplate
.
ENTRY
,
new
String
[]{
userBean
.
getQyzxEmpLogin
().
getUsername
()});
break
;
default
:
break
;
}
zpglMslcLog
.
setDetail
(
detail
);
count
=
zpglRcxx
.
updateById
();
zpglMslcLogService
.
addZpglMslcLog
(
zpglMslcLog
);
return
count
;
}
}
src/main/java/cn/timer/api/dao/zpgl/ZpglCompanyMapper.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
dao
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglCompany
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
* 招聘管理合同公司字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-17 15:14:40
*/
@Repository
public
interface
ZpglCompanyMapper
extends
BaseMapper
<
ZpglCompany
>
{
}
src/main/java/cn/timer/api/dao/zpgl/ZpglGzddMapper.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
dao
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglGzdd
;
import
cn.timer.api.bean.zpgl.ZpglZj
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
* 招聘管理工作地点字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-17 15:14:40
*/
@Repository
public
interface
ZpglGzddMapper
extends
BaseMapper
<
ZpglGzdd
>
{
}
src/main/java/cn/timer/api/dao/zpgl/ZpglZjMapper.java
0 → 100644
View file @
fa885b8a
package
cn
.
timer
.
api
.
dao
.
zpgl
;
import
cn.timer.api.bean.zpgl.ZpglCompany
;
import
cn.timer.api.bean.zpgl.ZpglZj
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
org.springframework.stereotype.Repository
;
/**
* 招聘管理职级字典表
*
* @author wuqingjun
* @email 284718418@qq.com
* @date 2022-03-17 15:14:40
*/
@Repository
public
interface
ZpglZjMapper
extends
BaseMapper
<
ZpglZj
>
{
}
src/main/resources/mapping/zpgl/ZpglCompanyMapper.xml
0 → 100644
View file @
fa885b8a
<?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.ZpglCompanyMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.zpgl.ZpglCompany"
id=
"zpglCompanyMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"companyName"
column=
"company_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
src/main/resources/mapping/zpgl/ZpglGzddMapper.xml
0 → 100644
View file @
fa885b8a
<?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.ZpglGzddMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.zpgl.ZpglGzdd"
id=
"ZpglGzddMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"provinceId"
column=
"province_id"
/>
<result
property=
"province"
column=
"province"
/>
<result
property=
"districtId"
column=
"district_id"
/>
<result
property=
"district"
column=
"district"
/>
<result
property=
"cityId"
column=
"city_id"
/>
<result
property=
"city"
column=
"city"
/>
<result
property=
"gzddName"
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
src/main/resources/mapping/zpgl/ZpglRcxxMapper.xml
View file @
fa885b8a
...
...
@@ -52,6 +52,9 @@
<result
property=
"label"
column=
"label"
/>
<result
property=
"status"
column=
"status"
/>
<result
property=
"zpglFailId"
column=
"zpgl_fail_id"
/>
<result
property=
"zpglCompanyId"
column=
"zpgl_company_id"
/>
<result
property=
"zpglZjId"
column=
"zpgl_zj_id"
/>
<result
property=
"zpglGzddId"
column=
"zpgl_gzdd_id"
/>
<result
property=
"interviewerId"
column=
"interviewer_id"
/>
<result
property=
"interviewTime"
column=
"interview_time"
/>
<result
property=
"noticeWay"
column=
"notice_way"
/>
...
...
src/main/resources/mapping/zpgl/ZpglZjMapper.xml
0 → 100644
View file @
fa885b8a
<?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.ZpglZjMapper"
>
<!-- 可根据自己的需求,是否要使用 -->
<resultMap
type=
"cn.timer.api.bean.zpgl.ZpglZj"
id=
"zpglZjMap"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"zjName"
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