1.修改主页面板和任务跟踪里的数据统计,使得数据一致 2.修改入职管理,使得所有人都可以看到入职list,不区分角色。

This commit is contained in:
lw 2024-06-27 09:56:09 +08:00
parent f0ffb2cf5b
commit 74ec00efe4
7 changed files with 44 additions and 40 deletions

View File

@ -5,14 +5,14 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
# master:
# url: jdbc:mysql://192.168.1.165:3306/zeoa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: zeoa
# password: dHahLWNYB7tD2Mia
master:
url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: zero
url: jdbc:mysql://192.168.1.165:3306/zeoa?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: zeoa
password: dHahLWNYB7tD2Mia
# master:
# url: jdbc:mysql://localhost:3306/ry-vue?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root
# password: zero
# 从库数据源
slave:
# 从数据源开关/默认关闭

View File

@ -7,8 +7,8 @@ ruoyi:
# 版权年份
copyrightYear: 2024
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /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:

View File

@ -77,19 +77,19 @@ public class EntryManageController extends BaseController {
@GetMapping("/list")
@ApiOperation(value = "入职管理的记录列表")
public TableDataInfo listEntryManage(EntryManage req) {
boolean isHr = false;
List<SysRole> sysRoles = iSysRoleService.rolesByUserId(getUserId());
if (!CollectionUtils.isEmpty(sysRoles)) {
for (SysRole sysRole : sysRoles) {
//如果角色是hr
if (sysRole.getRoleKey().equals("hr") || sysRole.getRoleKey().equals("hrleader")) {
isHr = true;
}
}
}
if (isHr) {
req.setHrId(getUserId());
}
// boolean isHr = false;
// List<SysRole> sysRoles = iSysRoleService.rolesByUserId(getUserId());
// if (!CollectionUtils.isEmpty(sysRoles)) {
// for (SysRole sysRole : sysRoles) {
// //如果角色是hr
// if (sysRole.getRoleKey().equals("hr") || sysRole.getRoleKey().equals("hrleader")) {
// isHr = true;
// }
// }
// }
// if (isHr) {
// req.setHrId(getUserId());
// }
startPage();
List<EntryManage> entryManageList = entryManageService.listBySelect(req);
return getDataTable(entryManageList);

View File

@ -223,7 +223,7 @@ public class HomePageController extends BaseController {
//封装该岗位浏览简历数
if(!CollectionUtils.isEmpty(resumeHandleRecordListByPostId)){
postDetailDTO.setPostLookResumeCounts( resumeHandleRecordListByPostId.stream()
.mapToInt(ResumeHandleRecord::getGreetNum)
.mapToInt(ResumeHandleRecord::getSeenNum)
.sum());
}else {
postDetailDTO.setPostLookResumeCounts(0);
@ -263,7 +263,7 @@ public class HomePageController extends BaseController {
//封装到面数
if(!CollectionUtils.isEmpty(resumeFollowRecordListByPostId)){
postDetailDTO.setPostArriveCounts(resumeFollowRecordListByPostId.stream().filter(record -> Objects.nonNull(record.getFinalReach()) && "1".equals(record.getFirstReach())).count());
postDetailDTO.setPostArriveCounts(resumeFollowRecordListByPostId.stream().filter(record -> Objects.nonNull(record.getFirstReach()) && "1".equals(record.getFirstReach())).count());
}else {
postDetailDTO.setPostArriveCounts(0L);
}

View File

@ -184,18 +184,18 @@ public class RecruitFollowController extends BaseController {
followVO.setLookResumeCount(listByPostId.stream()
.mapToInt(ResumeHandleRecord::getGreetNum)
.sum());
//封装人力资源通过简历数
followVO.setPassResumeCount(listByPostId.stream()
.mapToInt(ResumeHandleRecord::getQualifiedNum)
.sum());
// //封装人力资源通过简历数
// followVO.setPassResumeCount(listByPostId.stream()
// .mapToInt(ResumeHandleRecord::getQualifiedNum)
// .sum());
//封装约面人数
followVO.setInviteInterviewCount(listByPostId.stream()
.mapToInt(ResumeHandleRecord::getQualifiedNum)
.sum());
//封装接受邀约人数
followVO.setAcceptInviteCount(listByPostId.stream()
.mapToInt(ResumeHandleRecord::getReceiveInviteNum)
.sum());
//封装接受邀约人数
// followVO.setAcceptInviteCount(listByPostId.stream()
// .mapToInt(ResumeHandleRecord::getReceiveInviteNum)
// .sum());
followVOList.add(followVO);
}
}
@ -214,6 +214,9 @@ public class RecruitFollowController extends BaseController {
//如果存在则插入数据
if(result.isPresent()){
FollowVO followVO = result.get();
//封装合格简历数
followVO.setPassResumeCount(resumeFollowRecordList.size());
//设置初试人数
followVO.setFirstInterviewCount(resumeFollowRecords.stream()
.filter( record -> record.getFirstReach() != null && "1".equals(record.getFirstReach()))
@ -239,8 +242,8 @@ public class RecruitFollowController extends BaseController {
.filter(record -> record.getActualJoinDate() != null)
.count());
//封装到面率(一面人数/接受邀约人数)
if(followVO.getAcceptInviteCount()!=null&&followVO.getAcceptInviteCount()!=0){
BigDecimal arrivePercentage = new BigDecimal(followVO.getFirstInterviewCount()).divide(new BigDecimal(followVO.getAcceptInviteCount()), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(100));
if(followVO.getInviteInterviewCount()!=null&&followVO.getInviteInterviewCount()!=0){
BigDecimal arrivePercentage = new BigDecimal(followVO.getFirstInterviewCount()).divide(new BigDecimal(followVO.getInviteInterviewCount()), 2, RoundingMode.HALF_UP).multiply(new BigDecimal(100));
followVO.setArriveRate(arrivePercentage.doubleValue());
}else {
followVO.setArriveRate(0d);

View File

@ -16,4 +16,5 @@ public class PostDetailDTO {
private Long postDownLoadCounts;
private Integer postInviteCounts;
private Long postArriveCounts;
private Double qualificationRate;
}

View File

@ -84,8 +84,8 @@
select
<include refid="Base_Column_List"/>
from resume_follow_record
where create_date <![CDATA[>=]]> #{firstDay}
and create_date <![CDATA[<=]]> #{endDay}
where receive_date <![CDATA[>=]]> #{firstDay}
and receive_date <![CDATA[<=]]> #{endDay}
<if test="hrId!=null">and hr_id=#{hrId}</if>
</select>