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);
|
||||
|
||||
@@ -114,6 +114,9 @@ public class SysUser extends BaseEntity
|
||||
/**身份证机密性*/
|
||||
private String idCardEncrypt;
|
||||
|
||||
/**未处理求职者条数*/
|
||||
public Integer pendCount;
|
||||
|
||||
public SysUser()
|
||||
{
|
||||
|
||||
@@ -374,6 +377,14 @@ public class SysUser extends BaseEntity
|
||||
this.idCardEncrypt = idCardEncrypt;
|
||||
}
|
||||
|
||||
public Integer getPendCount() {
|
||||
return pendCount;
|
||||
}
|
||||
|
||||
public void setPendCount(Integer pendCount) {
|
||||
this.pendCount = pendCount;
|
||||
}
|
||||
|
||||
public void setRoleIdsStr(String roleIdsStr) {
|
||||
this.roleIdsStr = roleIdsStr;
|
||||
if (!StringUtils.isBlank(roleIdsStr)) {
|
||||
@@ -412,6 +423,7 @@ public class SysUser extends BaseEntity
|
||||
.append("roleIdsStr", getRoleIdsStr())
|
||||
.append("phonenumberEncrypt", getPhonenumberEncrypt())
|
||||
.append("idCardEncrypt", getIdCardEncrypt())
|
||||
.append("pendCount", getPendCount())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user