Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jy_jfb
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
jy_jfb
Commits
467d1008
提交
467d1008
authored
9月 19, 2025
作者:
wangmenglong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
人员经历提交
上级
e34e40ef
隐藏空白字符变更
内嵌
并排
正在显示
18 个修改的文件
包含
788 行增加
和
6 行删除
+788
-6
PersonEducational.java
jfb-lib/src/main/java/data/recruit/PersonEducational.java
+61
-0
Recruit.java
jfb-lib/src/main/java/data/recruit/Recruit.java
+12
-0
WorkExperience.java
jfb-lib/src/main/java/data/recruit/WorkExperience.java
+73
-0
ObjectiveController.java
.../java/com/jfb/recruit/controller/ObjectiveController.java
+10
-0
PersonEducationalController.java
...m/jfb/recruit/controller/PersonEducationalController.java
+103
-0
SignRecordController.java
...java/com/jfb/recruit/controller/SignRecordController.java
+4
-1
WorkExperienceController.java
.../com/jfb/recruit/controller/WorkExperienceController.java
+103
-0
PersonEducationalMapper.java
.../java/com/jfb/recruit/mapper/PersonEducationalMapper.java
+12
-0
RecruitMapper.java
...t/src/main/java/com/jfb/recruit/mapper/RecruitMapper.java
+10
-1
WorkExperienceMapper.java
...ain/java/com/jfb/recruit/mapper/WorkExperienceMapper.java
+12
-0
ObjectiveService.java
...c/main/java/com/jfb/recruit/service/ObjectiveService.java
+2
-0
PersonEducationalService.java
...ava/com/jfb/recruit/service/PersonEducationalService.java
+28
-0
RecruitService.java
...src/main/java/com/jfb/recruit/service/RecruitService.java
+1
-1
WorkExperienceService.java
...n/java/com/jfb/recruit/service/WorkExperienceService.java
+28
-0
ObjectiveServiceImpl.java
...va/com/jfb/recruit/service/impl/ObjectiveServiceImpl.java
+20
-0
PersonEducationalServiceImpl.java
...fb/recruit/service/impl/PersonEducationalServiceImpl.java
+151
-0
RecruitServiceImpl.java
...java/com/jfb/recruit/service/impl/RecruitServiceImpl.java
+7
-3
WorkExperienceServiceImpl.java
...m/jfb/recruit/service/impl/WorkExperienceServiceImpl.java
+151
-0
没有找到文件。
jfb-lib/src/main/java/data/recruit/PersonEducational.java
0 → 100644
浏览文件 @
467d1008
package
data
.
recruit
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
data.parent.IdentityObj
;
import
data.parent.NameObj
;
import
lombok.Data
;
/**
* @author wangmenglong
* @description: 教育经历
* @date 2023/12/11 10:50
*/
@Data
@TableName
(
value
=
"tb_person_educational"
)
public
class
PersonEducational
extends
IdentityObj
{
/**
* 学历id
**/
@TableField
(
"qualification_id"
)
private
String
qualificationId
;
/**
* 学历id
**/
@TableField
(
"qualification"
)
private
String
qualification
;
/**
* 学校
**/
@TableField
(
"school"
)
private
String
school
;
/**
* 专业
**/
@TableField
(
"major"
)
private
String
major
;
/**
* 开始时间
**/
@TableField
(
"start_time"
)
private
String
startTime
;
/**
* 结束时间
**/
@TableField
(
"end_time"
)
private
String
endTime
;
/**
* 人id
**/
@TableField
(
"person_id"
)
private
String
personId
;
}
jfb-lib/src/main/java/data/recruit/Recruit.java
浏览文件 @
467d1008
...
...
@@ -227,4 +227,16 @@ public class Recruit extends NameObj {
**/
@TableField
(
"region"
)
private
String
region
;
/**
* 员工证件号
**/
@TableField
(
exist
=
false
)
private
String
personIdno
;
/**
* 员工姓名
**/
@TableField
(
exist
=
false
)
private
String
personName
;
}
jfb-lib/src/main/java/data/recruit/WorkExperience.java
0 → 100644
浏览文件 @
467d1008
package
data
.
recruit
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
data.parent.IdentityObj
;
import
data.parent.NameObj
;
import
lombok.Data
;
/**
* @author wangmenglong
* @description: 工作经历
* @date 2023/12/11 10:50
*/
@Data
@TableName
(
value
=
"tb_work_experience"
)
public
class
WorkExperience
extends
IdentityObj
{
/**
* 公司名
**/
@TableField
(
"org_name"
)
private
String
orgName
;
/**
* 职位
**/
@TableField
(
"job"
)
private
String
job
;
/**
* 开始时间
**/
@TableField
(
"start_time"
)
private
String
startTime
;
/**
* 结束时间
**/
@TableField
(
"end_time"
)
private
String
endTime
;
/**
* 支付宝行业id
**/
@TableField
(
"industry_id"
)
private
String
industryId
;
/**
* 支付宝行业
**/
@TableField
(
"industry_name"
)
private
String
industryName
;
/**
* 金额
**/
@TableField
(
"money"
)
private
String
money
;
/**
* 描述
**/
@TableField
(
"descr"
)
private
String
descr
;
/**
* 人id
**/
@TableField
(
"person_id"
)
private
String
personId
;
}
jfb-recruit/src/main/java/com/jfb/recruit/controller/ObjectiveController.java
浏览文件 @
467d1008
...
...
@@ -52,6 +52,12 @@ public class ObjectiveController extends BaseController {
**/
@PostMapping
(
"/c"
)
public
BaseResult
create
(
@RequestBody
Objective
objective
){
//判断是否重复
if
(
objectiveService
.
isHave
(
objective
.
getUserId
(),
objective
.
getIndustryId
(),
objective
.
getId
())){
return
BaseResult
.
error
(
"error_008"
);
}
return
objectiveService
.
create
(
objective
)?
BaseResult
.
success
(
"normal_001"
):
BaseResult
.
error
(
"error_001"
);
}
...
...
@@ -63,6 +69,10 @@ public class ObjectiveController extends BaseController {
**/
@PostMapping
(
"/u"
)
public
BaseResult
update
(
@RequestBody
Objective
objective
){
//判断是否重复
if
(
objectiveService
.
isHave
(
objective
.
getUserId
(),
objective
.
getIndustryId
(),
objective
.
getId
())){
return
BaseResult
.
error
(
"error_008"
);
}
return
objectiveService
.
update
(
objective
)?
BaseResult
.
success
(
"normal_002"
):
BaseResult
.
error
(
"error_002"
);
}
...
...
jfb-recruit/src/main/java/com/jfb/recruit/controller/PersonEducationalController.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
controller
;
import
base.controller.BaseController
;
import
base.result.BaseResult
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.jfb.recruit.bean.auth.UserContext
;
import
com.jfb.recruit.service.PersonEducationalService
;
import
com.jfb.recruit.util.auth.UserUtils
;
import
data.recruit.PersonEducational
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* @author wangmenglong
* @description: 教育经历管理
* @date 2023/12/11 11:35
*/
@RestController
@RequestMapping
(
"/personEducational"
)
public
class
PersonEducationalController
extends
BaseController
{
@Resource
PersonEducationalService
personEducationalService
;
/**
* @description: 获取教育经历列表
* @author: wangmenglong
* @date; 2023/12/7 10:07
* @param: [req]
* @return: com.github.pagehelper.PageInfo
**/
@GetMapping
(
"/l"
)
public
BaseResult
list
(
HttpServletRequest
req
,
PersonEducational
personEducational
){
PageInit
(
req
);
UserContext
userContext
=
UserUtils
.
getUserContext
();
personEducational
.
setBaseCode
(
userContext
.
getBaseCode
());
List
<
PersonEducational
>
list
=
personEducationalService
.
list
(
pageNum
,
pageSize
,
personEducational
);
PageInfo
<
PersonEducational
>
pageInfo
=
new
PageInfo
<
PersonEducational
>(
list
);
return
BaseResult
.
success
(
pageInfo
);
}
/**
* @description: 新增教育经历
* @author: wangmenglong
* @param: [personEducational]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/c"
)
public
BaseResult
create
(
@RequestBody
PersonEducational
personEducational
){
//判断是否重复
if
(
personEducationalService
.
isHave
(
personEducational
.
getSchool
(),
personEducational
.
getId
())){
return
BaseResult
.
error
(
"error_004"
);
}
return
personEducationalService
.
create
(
personEducational
)?
BaseResult
.
success
(
"normal_001"
):
BaseResult
.
error
(
"error_001"
);
}
/**
* @description: 编辑教育经历
* @author: wangmenglong
* @param: [personEducational]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/u"
)
public
BaseResult
update
(
@RequestBody
PersonEducational
personEducational
){
//判断是否重复
if
(
personEducationalService
.
isHave
(
personEducational
.
getSchool
(),
personEducational
.
getId
())){
return
BaseResult
.
error
(
"error_004"
);
}
return
personEducationalService
.
update
(
personEducational
)?
BaseResult
.
success
(
"normal_002"
):
BaseResult
.
error
(
"error_002"
);
}
/**
* @description: 删除教育经历
* @author: wangmenglong
* @date; 2023/12/7 11:08
* @param: [id]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/d"
)
public
BaseResult
del
(
@RequestBody
JSONObject
jsonObject
){
String
id
=
jsonObject
.
getString
(
"id"
);
return
personEducationalService
.
del
(
id
)?
BaseResult
.
success
(
"normal_002"
):
BaseResult
.
error
(
"error_002"
);
}
/**
* @author: wangmenglong
* @date; 2024/3/24 17:18
* @description: 获取教育经历详情
* @param: [id]
* @return: base.result.BaseResult
**/
@GetMapping
(
"/details"
)
public
BaseResult
details
(
@RequestParam
(
"id"
)
String
id
){
PersonEducational
personEducational
=
personEducationalService
.
getDetails
(
id
);
return
BaseResult
.
success
(
personEducational
);
}
}
jfb-recruit/src/main/java/com/jfb/recruit/controller/SignRecordController.java
浏览文件 @
467d1008
...
...
@@ -56,7 +56,10 @@ public class SignRecordController extends BaseController {
@GetMapping
(
"/admin/list"
)
public
BaseResult
adminList
(
HttpServletRequest
req
){
PageInit
(
req
);
List
<
Recruit
>
list
=
recruitService
.
listBySignRecordAdmin
(
pageNum
,
pageSize
);
String
personIdno
=
req
.
getParameter
(
"personIdno"
);
String
personName
=
req
.
getParameter
(
"personName"
);
String
name
=
req
.
getParameter
(
"name"
);
List
<
Recruit
>
list
=
recruitService
.
listBySignRecordAdmin
(
pageNum
,
pageSize
,
personIdno
,
personName
,
name
);
PageInfo
<
Recruit
>
pageInfo
=
new
PageInfo
<
Recruit
>(
list
);
return
BaseResult
.
success
(
pageInfo
);
}
...
...
jfb-recruit/src/main/java/com/jfb/recruit/controller/WorkExperienceController.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
controller
;
import
base.controller.BaseController
;
import
base.result.BaseResult
;
import
com.alibaba.fastjson.JSONObject
;
import
com.github.pagehelper.PageInfo
;
import
com.jfb.recruit.bean.auth.UserContext
;
import
com.jfb.recruit.service.WorkExperienceService
;
import
com.jfb.recruit.util.auth.UserUtils
;
import
data.recruit.WorkExperience
;
import
org.springframework.web.bind.annotation.*
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.List
;
/**
* @author wangmenglong
* @description: 工作经历管理
* @date 2023/12/11 11:35
*/
@RestController
@RequestMapping
(
"/workExperience"
)
public
class
WorkExperienceController
extends
BaseController
{
@Resource
WorkExperienceService
workExperienceService
;
/**
* @description: 获取工作经历列表
* @author: wangmenglong
* @date; 2023/12/7 10:07
* @param: [req]
* @return: com.github.pagehelper.PageInfo
**/
@GetMapping
(
"/l"
)
public
BaseResult
list
(
HttpServletRequest
req
,
WorkExperience
workExperience
){
PageInit
(
req
);
UserContext
userContext
=
UserUtils
.
getUserContext
();
workExperience
.
setBaseCode
(
userContext
.
getBaseCode
());
List
<
WorkExperience
>
list
=
workExperienceService
.
list
(
pageNum
,
pageSize
,
workExperience
);
PageInfo
<
WorkExperience
>
pageInfo
=
new
PageInfo
<
WorkExperience
>(
list
);
return
BaseResult
.
success
(
pageInfo
);
}
/**
* @description: 新增工作经历
* @author: wangmenglong
* @param: [workExperience]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/c"
)
public
BaseResult
create
(
@RequestBody
WorkExperience
workExperience
){
//判断是否重复
if
(
workExperienceService
.
isHave
(
workExperience
.
getOrgName
(),
workExperience
.
getId
())){
return
BaseResult
.
error
(
"error_004"
);
}
return
workExperienceService
.
create
(
workExperience
)?
BaseResult
.
success
(
"normal_001"
):
BaseResult
.
error
(
"error_001"
);
}
/**
* @description: 编辑工作经历
* @author: wangmenglong
* @param: [workExperience]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/u"
)
public
BaseResult
update
(
@RequestBody
WorkExperience
workExperience
){
//判断是否重复
if
(
workExperienceService
.
isHave
(
workExperience
.
getOrgName
(),
workExperience
.
getId
())){
return
BaseResult
.
error
(
"error_004"
);
}
return
workExperienceService
.
update
(
workExperience
)?
BaseResult
.
success
(
"normal_002"
):
BaseResult
.
error
(
"error_002"
);
}
/**
* @description: 删除工作经历
* @author: wangmenglong
* @date; 2023/12/7 11:08
* @param: [id]
* @return: base.result.BaseResult
**/
@PostMapping
(
"/d"
)
public
BaseResult
del
(
@RequestBody
JSONObject
jsonObject
){
String
id
=
jsonObject
.
getString
(
"id"
);
return
workExperienceService
.
del
(
id
)?
BaseResult
.
success
(
"normal_002"
):
BaseResult
.
error
(
"error_002"
);
}
/**
* @author: wangmenglong
* @date; 2024/3/24 17:18
* @description: 获取工作经历详情
* @param: [id]
* @return: base.result.BaseResult
**/
@GetMapping
(
"/details"
)
public
BaseResult
details
(
@RequestParam
(
"id"
)
String
id
){
WorkExperience
workExperience
=
workExperienceService
.
getDetails
(
id
);
return
BaseResult
.
success
(
workExperience
);
}
}
jfb-recruit/src/main/java/com/jfb/recruit/mapper/PersonEducationalMapper.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
data.recruit.PersonEducational
;
/**
* @Author: wml
* @Date 2025/5/9 10:21
*/
public
interface
PersonEducationalMapper
extends
BaseMapper
<
PersonEducational
>
{
}
jfb-recruit/src/main/java/com/jfb/recruit/mapper/RecruitMapper.java
浏览文件 @
467d1008
...
...
@@ -33,11 +33,20 @@ public interface RecruitMapper extends BaseMapper<Recruit> {
"FROM tb_recruit r "
+
"RIGHT JOIN tb_sign_record rt ON r.id = rt.recruit_id "
+
"WHERE r.del = 0 and rt.del = 0 "
+
"<if test='name != null and name != \"\"'>"
+
" AND r.name = #{name}"
+
"</if>"
+
"<if test='personId != null and personId != \"\"'>"
+
" AND rt.person_id = #{personId}"
+
"</if>"
+
"<if test='personName != null and personName != \"\"'>"
+
" and rt.person_id in (select id FROM tb_person where name = #{personName})"
+
"</if>"
+
"<if test='personIdno != null and personIdno != \"\"'>"
+
" and rt.person_id in (select id FROM tb_person where id_no = #{personIdno})"
+
"</if>"
+
"ORDER BY rt.create_time DESC"
+
"</script>"
)
List
<
Recruit
>
listBySignRecord
(
@Param
(
"personId"
)
String
personId
);
List
<
Recruit
>
listBySignRecord
(
@Param
(
"personId"
)
String
personId
,
@Param
(
"personIdno"
)
String
personIdno
,
@Param
(
"personName"
)
String
personName
,
@Param
(
"name"
)
String
name
);
}
jfb-recruit/src/main/java/com/jfb/recruit/mapper/WorkExperienceMapper.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
data.recruit.WorkExperience
;
/**
* @Author: wml
* @Date 2025/5/9 10:21
*/
public
interface
WorkExperienceMapper
extends
BaseMapper
<
WorkExperience
>
{
}
jfb-recruit/src/main/java/com/jfb/recruit/service/ObjectiveService.java
浏览文件 @
467d1008
...
...
@@ -23,4 +23,6 @@ public interface ObjectiveService {
Objective
getDetails
(
String
id
);
boolean
isHave
(
String
userId
,
String
industryId
,
String
id
);
}
jfb-recruit/src/main/java/com/jfb/recruit/service/PersonEducationalService.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
service
;
import
data.recruit.PersonEducational
;
import
java.util.List
;
/**
*
* @return: 教育经历管理
* @Author: wml
* @Date 2025/5/9 10:20
*/
public
interface
PersonEducationalService
{
List
<
PersonEducational
>
list
(
int
pageNum
,
int
pageSize
,
PersonEducational
personEducational
);
boolean
create
(
PersonEducational
personEducational
);
boolean
update
(
PersonEducational
personEducational
);
boolean
del
(
String
id
);
PersonEducational
getDetails
(
String
id
);
boolean
isHave
(
String
school
,
String
id
);
}
jfb-recruit/src/main/java/com/jfb/recruit/service/RecruitService.java
浏览文件 @
467d1008
...
...
@@ -17,7 +17,7 @@ public interface RecruitService {
List
<
Recruit
>
listBySignRecord
(
int
pageNum
,
int
pageSize
,
String
personId
);
List
<
Recruit
>
listBySignRecordAdmin
(
int
pageNum
,
int
pageSize
);
List
<
Recruit
>
listBySignRecordAdmin
(
int
pageNum
,
int
pageSize
,
String
personIdno
,
String
personName
,
String
name
);
List
<
Recruit
>
list
(
int
pageNum
,
int
pageSize
,
Recruit
recruit
);
...
...
jfb-recruit/src/main/java/com/jfb/recruit/service/WorkExperienceService.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
service
;
import
data.recruit.WorkExperience
;
import
java.util.List
;
/**
*
* @return: 工作经历管理
* @Author: wml
* @Date 2025/5/9 10:20
*/
public
interface
WorkExperienceService
{
List
<
WorkExperience
>
list
(
int
pageNum
,
int
pageSize
,
WorkExperience
workExperience
);
boolean
create
(
WorkExperience
workExperience
);
boolean
update
(
WorkExperience
workExperience
);
boolean
del
(
String
id
);
WorkExperience
getDetails
(
String
id
);
boolean
isHave
(
String
orgName
,
String
id
);
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/ObjectiveServiceImpl.java
浏览文件 @
467d1008
...
...
@@ -138,4 +138,24 @@ public class ObjectiveServiceImpl extends ServiceImpl<ObjectiveMapper, Objective
return
super
.
getById
(
id
);
}
/**
* @author: wangmenglong
* @date; 2024/1/2 14:30
* @description: 判断是否存在
* @param: [account, id]
* @return: boolean
**/
@Override
public
boolean
isHave
(
String
userId
,
String
industryId
,
String
id
)
{
LambdaQueryWrapper
<
Objective
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
Objective:
:
getDel
,
false
)
.
eq
(
Objective:
:
getIndustryId
,
industryId
)
.
eq
(
Objective:
:
getUserId
,
userId
);
//如果传了id就是编辑,编辑的时候要加个条件,不能把名字跟别人重复
if
(
StringUtils
.
isNotBlank
(
id
)){
qw
.
ne
(
Objective:
:
getId
,
id
);
}
return
super
.
count
(
qw
)>
0
;
}
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/PersonEducationalServiceImpl.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.cloud.commons.lang.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.jfb.recruit.bean.auth.UserContext
;
import
com.jfb.recruit.mapper.PersonEducationalMapper
;
import
com.jfb.recruit.service.PersonEducationalService
;
import
com.jfb.recruit.util.auth.UserUtils
;
import
com.jfb.recruit.xsnowflake.SnowFlakeFactory
;
import
data.recruit.PersonEducational
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
*
* @return: 教育经历管理
* @Author: wml
* @Date 2025/5/9 10:22
*/
@Service
@Transactional
public
class
PersonEducationalServiceImpl
extends
ServiceImpl
<
PersonEducationalMapper
,
PersonEducational
>
implements
PersonEducationalService
{
@Autowired
SnowFlakeFactory
snowFlakeFactory
;
/**
* @description: 获取教育经历列表
* @author: wangmenglong
* @date; 2023/12/11 16:46
* @param: [pageNum, pageSize]
* @return: java.util.List<data.personEducational.PersonEducational>
**/
@Override
public
List
<
PersonEducational
>
list
(
int
pageNum
,
int
pageSize
,
PersonEducational
personEducational
)
{
//启动分页工具
PageHelper
.
startPage
(
pageNum
,
pageSize
);
//创建查询条件
LambdaQueryWrapper
<
PersonEducational
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
PersonEducational:
:
getDel
,
false
)
.
eq
(
StringUtils
.
isNotBlank
(
personEducational
.
getBaseCode
()),
PersonEducational:
:
getBaseCode
,
personEducational
.
getBaseCode
())
.
eq
(
StringUtils
.
isNotBlank
(
personEducational
.
getPersonId
()),
PersonEducational:
:
getPersonId
,
personEducational
.
getPersonId
())
.
orderByDesc
(
PersonEducational:
:
getCreateTime
);
List
<
PersonEducational
>
personEducationalList
=
super
.
list
(
qw
);
//返回查询结果
return
personEducationalList
;
}
/**
* @description: 新增教育经历
* @author: wangmenglong
* @date; 2023/12/11 16:51
* @param: [personEducational]
* @return: boolean
**/
@Override
public
boolean
create
(
PersonEducational
personEducational
)
{
UserContext
userContext
=
UserUtils
.
getUserContext
();
String
baseCode
=
userContext
.
getBaseCode
();
personEducational
.
setId
(
snowFlakeFactory
.
nextId
());
personEducational
.
setBaseCode
(
baseCode
);
personEducational
.
setDel
(
false
);
personEducational
.
setCreateTime
(
DateUtil
.
now
());
personEducational
.
setPersonId
(
userContext
.
getUserId
());
return
super
.
save
(
personEducational
);
}
/**
* @description: 编辑教育经历
* @author: wangmenglong
* @date; 2023/12/11 16:55
* @param: [personEducational]
* @return: boolean
**/
@Override
public
boolean
update
(
PersonEducational
personEducational
)
{
personEducational
.
setUpdateTime
(
DateUtil
.
now
());
//判断是否传入id
if
(
StringUtils
.
isBlank
(
personEducational
.
getId
())){
return
false
;
}
return
super
.
saveOrUpdate
(
personEducational
);
}
/**
* @description: 删除教育经历
* @author: wangmenglong
* @date; 2023/12/11 17:06
* @param: [id]
* @return: boolean
**/
@Override
public
boolean
del
(
String
id
)
{
if
(
StringUtils
.
isBlank
(
id
)){
return
false
;
}
LambdaUpdateWrapper
<
PersonEducational
>
qw
=
new
LambdaUpdateWrapper
<>();
qw
.
eq
(
PersonEducational:
:
getId
,
id
)
.
set
(
PersonEducational:
:
getDel
,
true
)
.
set
(
PersonEducational:
:
getDelTime
,
DateUtil
.
now
());
return
super
.
update
(
qw
);
}
/**
* @author: wangmenglong
* @date; 2024/3/24 17:19
* @description: 获取教育经历详情
* @param: [id]
* @return: data.personEducational.PersonEducational
**/
@Override
public
PersonEducational
getDetails
(
String
id
)
{
return
super
.
getById
(
id
);
}
/**
* @author: wangmenglong
* @date; 2024/1/2 14:30
* @description: 判断是否存在
* @param: [account, id]
* @return: boolean
**/
@Override
public
boolean
isHave
(
String
school
,
String
id
)
{
LambdaQueryWrapper
<
PersonEducational
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
PersonEducational:
:
getDel
,
false
)
.
eq
(
PersonEducational:
:
getSchool
,
school
);
//如果传了id就是编辑,编辑的时候要加个条件,不能把名字跟别人重复
if
(
StringUtils
.
isNotBlank
(
id
)){
qw
.
ne
(
PersonEducational:
:
getId
,
id
);
}
return
super
.
count
(
qw
)>
0
;
}
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/RecruitServiceImpl.java
浏览文件 @
467d1008
...
...
@@ -68,10 +68,10 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
* @return: java.util.List<data.recruit.Recruit>
**/
@Override
public
List
<
Recruit
>
listBySignRecordAdmin
(
int
pageNum
,
int
pageSize
)
{
public
List
<
Recruit
>
listBySignRecordAdmin
(
int
pageNum
,
int
pageSize
,
String
personIdno
,
String
personName
,
String
name
)
{
//启动分页工具
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
Recruit
>
orgList
=
recruitMapper
.
listBySignRecord
(
null
);
List
<
Recruit
>
orgList
=
recruitMapper
.
listBySignRecord
(
null
,
personIdno
,
personName
,
name
);
orgList
.
stream
().
forEach
(
recruit
->
{
recruit
.
setPerson
(
personService
.
getDetails
(
recruit
.
getPersonId
()));
...
...
@@ -94,7 +94,7 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
public
List
<
Recruit
>
listBySignRecord
(
int
pageNum
,
int
pageSize
,
String
personId
)
{
//启动分页工具
PageHelper
.
startPage
(
pageNum
,
pageSize
);
List
<
Recruit
>
orgList
=
recruitMapper
.
listBySignRecord
(
personId
);
List
<
Recruit
>
orgList
=
recruitMapper
.
listBySignRecord
(
personId
,
null
,
null
,
null
);
orgList
.
stream
().
forEach
(
returnRecruit
->
{
returnRecruit
.
setOrg
(
orgService
.
getDetails
(
returnRecruit
.
getOrgId
()));
...
...
@@ -138,6 +138,10 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
LambdaQueryWrapper
<
Recruit
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
like
(
StringUtils
.
isNotBlank
(
recruit
.
getName
()),
Recruit:
:
getName
,
recruit
.
getName
())
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getRecruitTypeId
()),
Recruit:
:
getRecruitTypeId
,
recruit
.
getRecruitTypeId
())
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getOrgId
()),
Recruit:
:
getOrgId
,
recruit
.
getOrgId
())
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getExperienceId
()),
Recruit:
:
getExperienceId
,
recruit
.
getExperienceId
())
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getStatus
()),
Recruit:
:
getStatus
,
recruit
.
getStatus
())
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getQualificationId
()),
Recruit:
:
getQualificationId
,
recruit
.
getQualificationId
())
.
eq
(
Recruit:
:
getDel
,
false
)
.
eq
(
StringUtils
.
isNotBlank
(
recruit
.
getBaseCode
()),
Recruit:
:
getBaseCode
,
recruit
.
getBaseCode
())
.
like
(
StringUtils
.
isNotBlank
(
recruit
.
getIndustryName
()),
Recruit:
:
getIndustryName
,
recruit
.
getIndustryName
())
...
...
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/WorkExperienceServiceImpl.java
0 → 100644
浏览文件 @
467d1008
package
com
.
jfb
.
recruit
.
service
.
impl
;
import
cn.hutool.core.date.DateUtil
;
import
com.alibaba.cloud.commons.lang.StringUtils
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.github.pagehelper.PageHelper
;
import
com.jfb.recruit.bean.auth.UserContext
;
import
com.jfb.recruit.mapper.WorkExperienceMapper
;
import
com.jfb.recruit.service.WorkExperienceService
;
import
com.jfb.recruit.util.auth.UserUtils
;
import
com.jfb.recruit.xsnowflake.SnowFlakeFactory
;
import
data.recruit.WorkExperience
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
/**
*
* @return: 工作经历管理
* @Author: wml
* @Date 2025/5/9 10:22
*/
@Service
@Transactional
public
class
WorkExperienceServiceImpl
extends
ServiceImpl
<
WorkExperienceMapper
,
WorkExperience
>
implements
WorkExperienceService
{
@Autowired
SnowFlakeFactory
snowFlakeFactory
;
/**
* @description: 获取工作经历列表
* @author: wangmenglong
* @date; 2023/12/11 16:46
* @param: [pageNum, pageSize]
* @return: java.util.List<data.workExperience.WorkExperience>
**/
@Override
public
List
<
WorkExperience
>
list
(
int
pageNum
,
int
pageSize
,
WorkExperience
workExperience
)
{
//启动分页工具
PageHelper
.
startPage
(
pageNum
,
pageSize
);
//创建查询条件
LambdaQueryWrapper
<
WorkExperience
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
WorkExperience:
:
getDel
,
false
)
.
eq
(
StringUtils
.
isNotBlank
(
workExperience
.
getBaseCode
()),
WorkExperience:
:
getBaseCode
,
workExperience
.
getBaseCode
())
.
eq
(
StringUtils
.
isNotBlank
(
workExperience
.
getPersonId
()),
WorkExperience:
:
getPersonId
,
workExperience
.
getPersonId
())
.
orderByDesc
(
WorkExperience:
:
getCreateTime
);
List
<
WorkExperience
>
workExperienceList
=
super
.
list
(
qw
);
//返回查询结果
return
workExperienceList
;
}
/**
* @description: 新增工作经历
* @author: wangmenglong
* @date; 2023/12/11 16:51
* @param: [workExperience]
* @return: boolean
**/
@Override
public
boolean
create
(
WorkExperience
workExperience
)
{
UserContext
userContext
=
UserUtils
.
getUserContext
();
String
baseCode
=
userContext
.
getBaseCode
();
workExperience
.
setId
(
snowFlakeFactory
.
nextId
());
workExperience
.
setBaseCode
(
baseCode
);
workExperience
.
setDel
(
false
);
workExperience
.
setCreateTime
(
DateUtil
.
now
());
workExperience
.
setPersonId
(
userContext
.
getUserId
());
return
super
.
save
(
workExperience
);
}
/**
* @description: 编辑工作经历
* @author: wangmenglong
* @date; 2023/12/11 16:55
* @param: [workExperience]
* @return: boolean
**/
@Override
public
boolean
update
(
WorkExperience
workExperience
)
{
workExperience
.
setUpdateTime
(
DateUtil
.
now
());
//判断是否传入id
if
(
StringUtils
.
isBlank
(
workExperience
.
getId
())){
return
false
;
}
return
super
.
saveOrUpdate
(
workExperience
);
}
/**
* @description: 删除工作经历
* @author: wangmenglong
* @date; 2023/12/11 17:06
* @param: [id]
* @return: boolean
**/
@Override
public
boolean
del
(
String
id
)
{
if
(
StringUtils
.
isBlank
(
id
)){
return
false
;
}
LambdaUpdateWrapper
<
WorkExperience
>
qw
=
new
LambdaUpdateWrapper
<>();
qw
.
eq
(
WorkExperience:
:
getId
,
id
)
.
set
(
WorkExperience:
:
getDel
,
true
)
.
set
(
WorkExperience:
:
getDelTime
,
DateUtil
.
now
());
return
super
.
update
(
qw
);
}
/**
* @author: wangmenglong
* @date; 2024/3/24 17:19
* @description: 获取工作经历详情
* @param: [id]
* @return: data.workExperience.WorkExperience
**/
@Override
public
WorkExperience
getDetails
(
String
id
)
{
return
super
.
getById
(
id
);
}
/**
* @author: wangmenglong
* @date; 2024/1/2 14:30
* @description: 判断是否存在
* @param: [account, id]
* @return: boolean
**/
@Override
public
boolean
isHave
(
String
getOrgName
,
String
id
)
{
LambdaQueryWrapper
<
WorkExperience
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
WorkExperience:
:
getDel
,
false
)
.
eq
(
WorkExperience:
:
getOrgName
,
getOrgName
);
//如果传了id就是编辑,编辑的时候要加个条件,不能把名字跟别人重复
if
(
StringUtils
.
isNotBlank
(
id
)){
qw
.
ne
(
WorkExperience:
:
getId
,
id
);
}
return
super
.
count
(
qw
)>
0
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论