主页岗位根据合格简历数进行排序
This commit is contained in:
parent
6af7e4207c
commit
65e20a89a1
|
@ -7,8 +7,8 @@ ruoyi:
|
||||||
# 版权年份
|
# 版权年份
|
||||||
copyrightYear: 2024
|
copyrightYear: 2024
|
||||||
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
||||||
profile: D:/zeroerr/uploadPath
|
#profile: D:/zeroerr/uploadPath
|
||||||
#profile: /home/zeroerr_oa/uploadPath
|
profile: /home/zeroerr_oa/uploadPath
|
||||||
# 获取ip地址开关
|
# 获取ip地址开关
|
||||||
addressEnabled: false
|
addressEnabled: false
|
||||||
# 验证码类型 math 数字计算 char 字符验证
|
# 验证码类型 math 数字计算 char 字符验证
|
||||||
|
@ -69,15 +69,15 @@ spring:
|
||||||
# redis 配置
|
# redis 配置
|
||||||
redis:
|
redis:
|
||||||
# 地址
|
# 地址
|
||||||
#host: 192.168.1.189
|
host: 192.168.1.189
|
||||||
host: localhost
|
#host: localhost
|
||||||
# 端口,默认为6379
|
# 端口,默认为6379
|
||||||
port: 6379
|
port: 6379
|
||||||
# 数据库索引
|
# 数据库索引
|
||||||
database: 0
|
database: 0
|
||||||
# 密码
|
# 密码
|
||||||
#password: 123456
|
password: 123456
|
||||||
password:
|
#password:
|
||||||
# 连接超时时间
|
# 连接超时时间
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
lettuce:
|
lettuce:
|
||||||
|
|
|
@ -311,9 +311,9 @@ public class HomePageController extends BaseController {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
if (!CollectionUtils.isEmpty(postDetailDTOList)) {
|
if (!CollectionUtils.isEmpty(postDetailDTOList)) {
|
||||||
//根据《岗位查看》简历数进行排序
|
//根据合格简历数多少进行排序
|
||||||
List<PostDetailDTO> sortedList = postDetailDTOList.stream()
|
List<PostDetailDTO> sortedList = postDetailDTOList.stream()
|
||||||
.sorted(Comparator.comparingInt(PostDetailDTO::getPostLookResumeCounts).reversed()) // 从大到小排序
|
.sorted(Comparator.comparingInt(PostDetailDTO::getPostQualifiedResumeCounts).reversed()) // 从大到小排序
|
||||||
.collect(Collectors.toList());
|
.collect(Collectors.toList());
|
||||||
sortedList.forEach(
|
sortedList.forEach(
|
||||||
post -> {
|
post -> {
|
||||||
|
|
Loading…
Reference in New Issue