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