pc端/getInfo 接口添加返回企业未处理申请请条数pendCount 修改

This commit is contained in:
sh
2026-05-14 16:43:07 +08:00
parent 3a6c6638cb
commit 169adf2dd5
2 changed files with 15 additions and 2 deletions

View File

@@ -230,9 +230,10 @@ public class SysLoginController
Set<String> permissions = permissionService.getMenuPermission(user);
AjaxResult ajax = AjaxResult.success();
//获取企业未处理求职者条数
if(roles.contains(String.valueOf(StringUtil.COMPANY_ADMIN_ROLE_KEY))){
boolean flag = user.getRoles().stream().anyMatch(it -> StringUtil.COMPANY_ADMIN_ROLE_KEY.equals(it.getRoleId()));
if(flag){
Integer pendCount = jobApplyService.selectPendCount(user.getIdCard());
ajax.put("pendCount", pendCount == null ? 0 : pendCount);
user.setPendCount(pendCount == null ? 0 : pendCount);
}
ajax.put("user", user);
ajax.put("roles", roles);