SUPPORT-8407: Fix
This commit is contained in:
parent
b947bab361
commit
5c9dd1ccb1
2 changed files with 6 additions and 16 deletions
|
|
@ -22,13 +22,11 @@ public class OrganizationModel implements Serializable {
|
||||||
|
|
||||||
private String type;
|
private String type;
|
||||||
|
|
||||||
private String typeName;
|
|
||||||
|
|
||||||
private String inn;
|
private String inn;
|
||||||
|
|
||||||
private String ogrn;
|
private String ogrn;
|
||||||
|
|
||||||
private String orgTypeLeg;
|
private String leg;
|
||||||
|
|
||||||
private String kpp;
|
private String kpp;
|
||||||
|
|
||||||
|
|
@ -88,12 +86,12 @@ public class OrganizationModel implements Serializable {
|
||||||
this.ogrn = ogrn;
|
this.ogrn = ogrn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOrgTypeLeg() {
|
public String getLeg() {
|
||||||
return orgTypeLeg;
|
return leg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOrgTypeLeg(String orgTypeLeg) {
|
public void setLeg(String leg) {
|
||||||
this.orgTypeLeg = orgTypeLeg;
|
this.leg = leg;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getKpp() {
|
public String getKpp() {
|
||||||
|
|
@ -152,14 +150,6 @@ public class OrganizationModel implements Serializable {
|
||||||
this.type = type;
|
this.type = type;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getTypeName() {
|
|
||||||
return typeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTypeName(String typeName) {
|
|
||||||
this.typeName = typeName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public Long getStaffCount() {
|
public Long getStaffCount() {
|
||||||
return staffCount;
|
return staffCount;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ public class UlDataServiceImpl implements UlDataService {
|
||||||
private EmployeeModel getEmplData(String prsnId, String orgOid, String accessToken) {
|
private EmployeeModel getEmplData(String prsnId, String orgOid, String accessToken) {
|
||||||
try {
|
try {
|
||||||
String url = esiaConfig.getEsiaBaseUri() + "rs/orgs/" + orgOid + "/emps/" + prsnId;
|
String url = esiaConfig.getEsiaBaseUri() + "rs/orgs/" + orgOid + "/emps/" + prsnId;
|
||||||
HttpRequest getReq = HttpRequest.newBuilder(URI.create(url + prsnId))
|
HttpRequest getReq = HttpRequest.newBuilder(URI.create(url))
|
||||||
.header(HttpHeaders.CONTENT_TYPE, "application/x-www-form-urlencoded")
|
.header(HttpHeaders.CONTENT_TYPE, "application/x-www-form-urlencoded")
|
||||||
.header("Authorization", "Bearer ".concat(accessToken))
|
.header("Authorization", "Bearer ".concat(accessToken))
|
||||||
.GET()
|
.GET()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue