This commit is contained in:
chenyanchang
2026-06-25 17:54:48 +08:00
parent a33b3988a5
commit 3d08387561
11 changed files with 60 additions and 17 deletions

View File

@@ -316,12 +316,16 @@ public class SsoService {
//取角色判断是网格员2还是内部工作者3
String isCompanyUser = null;
if(userJson.containsKey("roles")) {
JSONObject role = userJson.getJSONArray("roles").getJSONObject(0);
if (role != null && role.containsKey("roleId")) {
/*1101(求职者)、1102(招聘者)、1103(网格员)、1104(内部工作者)*/
Long roleId = role.getLong("roleId");
if (roleId != null && roleId.equals(1103L)) {
isCompanyUser = "2";//2网格员
JSONArray role = userJson.getJSONArray("roles");
if (role != null && role.size() != 0) {
for (int i=0;i<role.size();i++) {
JSONObject js = role.getJSONObject(i);
/*1101(求职者)、1102(招聘者)、1103(网格员)、1104(内部工作者)*/
Long roleId = js.getLong("roleId");
if (roleId != null && roleId.equals(1103L)) {
isCompanyUser = "2";//2网格员
break;
}
}
}
}
@@ -509,7 +513,7 @@ public class SsoService {
//获取身份证
String personCardNo="";
//0.企业 1.求职者 2.格员
//0.企业 1.求职者 2.格员
if("0".equals(isCompanyUser)){
personCardNo = info.getString("entCreditCode");
String phone = info.getString("entAdminPhone");