pc端/getInfo 接口添加返回企业未处理申请请条数pendCount 修改
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user