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