|
@@ -91,7 +91,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerPerson(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerPerson", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPerson?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerPerson?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -113,7 +113,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerPersonal(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerPersonal", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPersonal?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerPersonal?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -145,7 +145,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerGlobalInfoCHN(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerGlobalInfoCHN", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerGlobalInfoCHN?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerGlobalInfoCHN?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -171,7 +171,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerNationalId(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerNationalId", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerNationalId?$filter=personIdExternal in %s&$format=json&$expand=countryNav";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerNationalId?$filter=personIdExternal in %s&$format=json&$expand=countryNav";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -193,7 +193,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerEmail(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerEmail", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerEmail?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerEmail?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -216,7 +216,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerPhone(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerPhone", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPhone?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerPhone?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -238,7 +238,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapPerSocialAccount(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapPerSocialAccount", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerSocialAccount?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PerSocialAccount?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -259,7 +259,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapEmpEmployment(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapEmpEmployment", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpEmployment?$filter=personIdExternal in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/EmpEmployment?$filter=personIdExternal in %s&$format=json";
|
|
|
url = String.format(url, getPersonIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -292,7 +292,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapEmpJob(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapEmpJob", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpJob?$filter=userId in %s&$format=json"
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/EmpJob?$filter=userId in %s&$format=json"
|
|
|
+ "&$expand=positionNav,companyNav,businessUnitNav,divisionNav,departmentNav,customString19Nav,locationNav,jobCodeNav";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
@@ -330,7 +330,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapEmpJobRelationships(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapEmpJobRelationships", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpJobRelationships?$filter=userId in %s&$format=json&$expand=relUserNav";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/EmpJobRelationships?$filter=userId in %s&$format=json&$expand=relUserNav";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -352,7 +352,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapOutsideWorkExperience(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapOutsideWorkExperience", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_OutsideWorkExperience?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_OutsideWorkExperience?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -383,7 +383,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapInsideWorkExperience(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapInsideWorkExperience", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_InsideWorkExperience?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_InsideWorkExperience?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -406,7 +406,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapCourses(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapCourses", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_Courses?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_Courses?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -436,7 +436,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapEducation(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapEducation", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_Education?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_Education?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -461,7 +461,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapCertificates(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapCertificates", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_Certificates?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_Certificates?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -485,7 +485,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapLanguages(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapLanguages", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/Background_Languages?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/Background_Languages?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -508,7 +508,7 @@ public class SapReportService extends BaseService {
|
|
|
public void saveSapOverallPerformance(HttpHeaders headers, List<SapUser> sapUsers) throws Exception {
|
|
|
delete("SapReportMapper.deleteSapOverallPerformance", null);
|
|
|
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/TrendData_SysOverallPerformance?$filter=userId in %s&$format=json";
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/TrendData_SysOverallPerformance?$filter=userId in %s&$format=json";
|
|
|
url = String.format(url, getUserIds(sapUsers));
|
|
|
JsonNode node = requestService.getForObject(url, headers);
|
|
|
if (node != null) {
|
|
@@ -537,7 +537,7 @@ public class SapReportService extends BaseService {
|
|
|
} else {
|
|
|
String value = "";
|
|
|
try {
|
|
|
- String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PicklistLabel(locale='zh_CN',optionId=" + optionId
|
|
|
+ String url = "https://api15.sapsf.cn/odata/v2/PicklistLabel(locale='zh_CN',optionId=" + optionId
|
|
|
+ ")?$format=json";
|
|
|
JsonNode node = requestService.getForObject(url, getHttpHeaders());
|
|
|
value = JsonNodeUtil.getValue(node, "d", "label");
|