Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jy_jfb
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Administrator
jy_jfb
Commits
35faff8b
提交
35faff8b
authored
9月 18, 2026
作者:
wangmenglong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
返回君营人员的岗位报名
上级
3973670c
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
50 行增加
和
0 行删除
+50
-0
Person.java
jfb-lib/src/main/java/data/recruit/Person.java
+5
-0
PersonService.java
.../src/main/java/com/jfb/recruit/service/PersonService.java
+5
-0
OrgSignRecordServiceImpl.java
...om/jfb/recruit/service/impl/OrgSignRecordServiceImpl.java
+3
-0
PersonServiceImpl.java
.../java/com/jfb/recruit/service/impl/PersonServiceImpl.java
+30
-0
RecruitServiceImpl.java
...java/com/jfb/recruit/service/impl/RecruitServiceImpl.java
+7
-0
没有找到文件。
jfb-lib/src/main/java/data/recruit/Person.java
浏览文件 @
35faff8b
...
...
@@ -86,5 +86,10 @@ public class Person extends NameObj {
@TableField
(
"work_experience"
)
private
String
workExperience
;
/**
* 最晚毕业时间(来自教育经历表 tb_person_educational.end_time 的 MAX,仅展示用,非数据库列)
**/
@TableField
(
exist
=
false
)
private
String
graduationTime
;
}
jfb-recruit/src/main/java/com/jfb/recruit/service/PersonService.java
浏览文件 @
35faff8b
...
...
@@ -28,4 +28,9 @@ public interface PersonService {
Person
getDetailsByLoginOpenId
(
String
openId
);
/**
* 获取员工最晚毕业时间(取教育经历表 end_time 的最大值,yyyy-MM-dd 字符串排序有效)
**/
String
getLatestGraduationTime
(
String
personId
);
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/OrgSignRecordServiceImpl.java
浏览文件 @
35faff8b
...
...
@@ -56,6 +56,9 @@ public class OrgSignRecordServiceImpl implements OrgSignRecordService {
orgList
.
stream
().
forEach
(
recruit
->
{
recruit
.
setPerson
(
personService
.
getDetails
(
recruit
.
getPersonId
()));
if
(
recruit
.
getPerson
()
!=
null
)
{
recruit
.
getPerson
().
setGraduationTime
(
personService
.
getLatestGraduationTime
(
recruit
.
getPersonId
()));
}
recruit
.
setOrg
(
orgService
.
getDetails
(
recruit
.
getOrgId
()));
});
...
...
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/PersonServiceImpl.java
浏览文件 @
35faff8b
...
...
@@ -7,16 +7,19 @@ 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.mapper.PersonMapper
;
import
com.jfb.recruit.service.PersonService
;
import
com.jfb.recruit.util.auth.UserUtils
;
import
com.jfb.recruit.xsnowflake.SnowFlakeFactory
;
import
data.recruit.Person
;
import
data.recruit.PersonEducational
;
import
data.user.User
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
...
...
@@ -32,6 +35,12 @@ public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> impleme
@Autowired
SnowFlakeFactory
snowFlakeFactory
;
@Resource
private
PersonMapper
personMapper
;
@Resource
private
PersonEducationalMapper
personEducationalMapper
;
/**
* @description: 获取报名员工列表
...
...
@@ -166,4 +175,25 @@ public class PersonServiceImpl extends ServiceImpl<PersonMapper, Person> impleme
return
super
.
getOne
(
qw
);
}
/**
* @author: wangmenglong
* @date; 2026/09/18
* @description: 获取员工最晚毕业时间(取教育经历表 end_time 的最大值,yyyy-MM-dd 字符串排序有效)
* @param: [personId]
* @return: java.lang.String
**/
@Override
public
String
getLatestGraduationTime
(
String
personId
)
{
if
(
StringUtils
.
isBlank
(
personId
))
{
return
null
;
}
LambdaQueryWrapper
<
PersonEducational
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
select
(
PersonEducational:
:
getEndTime
)
.
eq
(
PersonEducational:
:
getPersonId
,
personId
)
.
orderByDesc
(
PersonEducational:
:
getEndTime
)
.
last
(
"LIMIT 1"
);
PersonEducational
edu
=
personEducationalMapper
.
selectOne
(
qw
);
return
edu
==
null
?
null
:
edu
.
getEndTime
();
}
}
jfb-recruit/src/main/java/com/jfb/recruit/service/impl/RecruitServiceImpl.java
浏览文件 @
35faff8b
...
...
@@ -110,6 +110,9 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
orgList
.
stream
().
forEach
(
recruit
->
{
recruit
.
setPerson
(
personService
.
getDetails
(
recruit
.
getPersonId
()));
if
(
recruit
.
getPerson
()
!=
null
)
{
recruit
.
getPerson
().
setGraduationTime
(
personService
.
getLatestGraduationTime
(
recruit
.
getPersonId
()));
}
recruit
.
setOrg
(
orgService
.
getDetails
(
recruit
.
getOrgId
()));
});
...
...
@@ -131,6 +134,10 @@ public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> impl
List
<
Recruit
>
orgList
=
recruitMapper
.
listBySignRecord
(
personId
,
null
,
null
,
null
,
null
,
null
,
null
,
null
);
orgList
.
stream
().
forEach
(
returnRecruit
->
{
returnRecruit
.
setPerson
(
personService
.
getDetails
(
returnRecruit
.
getPersonId
()));
if
(
returnRecruit
.
getPerson
()
!=
null
)
{
returnRecruit
.
getPerson
().
setGraduationTime
(
personService
.
getLatestGraduationTime
(
returnRecruit
.
getPersonId
()));
}
returnRecruit
.
setOrg
(
orgService
.
getDetails
(
returnRecruit
.
getOrgId
()));
});
//返回查询结果
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论