Jelajahi Sumber

更新sf域名

hanwenjie 3 tahun lalu
induk
melakukan
5d38d9fbfe
17 mengubah file dengan 37 tambahan dan 39 penghapusan
  1. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/core/base/service/BaseService.java
  2. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapBankService.java
  3. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapContractService.java
  4. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpEmploymentService.java
  5. 2 2
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpJobService.java
  6. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpTerminationService.java
  7. 2 4
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmployeeTimeService.java
  8. 2 2
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapOrgService.java
  9. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerGlobalInfoCHNService.java
  10. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerNationalIdService.java
  11. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerPersonRelationshipService.java
  12. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerPersonalService.java
  13. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPersonService.java
  14. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapPersonalService.java
  15. 18 18
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapReportService.java
  16. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapTimeTypeService.java
  17. 1 1
      code/sapparent/sapservice/src/main/java/org/fouram/service/SapUserService.java

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/core/base/service/BaseService.java

@@ -143,7 +143,7 @@ public abstract class BaseService {
 	}
 
 	private String getPicklistLabelUrl(String optionId) {
-		return "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PicklistLabel(locale='zh_CN',optionId=" + optionId + ")?$format=json";
+		return "https://api15.sapsf.cn/odata/v2/PicklistLabel(locale='zh_CN',optionId=" + optionId + ")?$format=json";
 	}
 
 	public String getLabelValue(String optionId) {

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapBankService.java

@@ -15,7 +15,7 @@ public class SapBankService extends BaseService {
 	public void saveSapData() throws Exception {
 		delete("SapBankMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/cust_bank?$format=json&$expand=cust_bankNav";
+		String url = "https://api15.sapsf.cn/odata/v2/cust_bank?$format=json&$expand=cust_bankNav";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapContractService.java

@@ -18,7 +18,7 @@ public class SapContractService extends BaseService {
 
 		delete("SapContractMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/cust_Contract?$format=json&$expand=cust_LegalNav";
+		String url = "https://api15.sapsf.cn/odata/v2/cust_Contract?$format=json&$expand=cust_LegalNav";
 		JsonNode node = requestService.getForObject(url, headers);
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpEmploymentService.java

@@ -21,7 +21,7 @@ public class SapEmpEmploymentService extends BaseService {
 	private RequestService requestService;
 
 	public void setEmpInfo(List<SapUser> sapUsers) {
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpEmployment?$filter=userId in %s&$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/EmpEmployment?$filter=userId in %s&$format=json";
 		url = String.format(url, getUserIds(sapUsers));
 		JsonNode jsonNode = requestService.getForObject(url, getHttpHeaders());
 		Map<String, String> startDateMap = Maps.newHashMap();

+ 2 - 2
code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpJobService.java

@@ -23,7 +23,7 @@ public class SapEmpJobService extends BaseService {
 	private RequestService requestService;
 
 	public void setPosition(List<SapUser> sapUsers) {
-		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";
 		url = String.format(url, getUserIds(sapUsers));
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		Map<String, String> jobTitleMap = Maps.newHashMap();
@@ -45,7 +45,7 @@ public class SapEmpJobService extends BaseService {
 	public void saveSapData() throws Exception {
 		delete("SapEmpJobMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpJob?$format=json"
+		String url = "https://api15.sapsf.cn/odata/v2/EmpJob?$format=json"
 				+ "&$expand=positionNav,companyNav,businessUnitNav,divisionNav,departmentNav,customString19Nav,locationNav,jobCodeNav";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmpTerminationService.java

@@ -18,7 +18,7 @@ public class SapEmpTerminationService extends BaseService {
 	private RequestService requestService;
 
 	public void saveSapData() throws Exception {
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpEmploymentTermination?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/EmpEmploymentTermination?$format=json";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 2 - 4
code/sapparent/sapservice/src/main/java/org/fouram/service/SapEmployeeTimeService.java

@@ -25,7 +25,7 @@ public class SapEmployeeTimeService extends BaseService {
 	private WxUserService wxUserService;
 
 	public void testPush(String userId){
-		String url = String.format("https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmployeeTime?$filter=userId in %s&$format=json",
+		String url = String.format("https://api15.sapsf.cn/odata/v2/EmployeeTime?$filter=userId in %s&$format=json",
 				userId);
 		log.info("url = {} ,headers = {}",url,getHttpHeaders());
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
@@ -37,9 +37,7 @@ public class SapEmployeeTimeService extends BaseService {
 		List<String> allSapUserIds = wxUserService.selectSapUserId();
 		String url = null;
 		for (String userId : allSapUserIds) {
-//			url = String.format("https://api15.sapsf.cn/odata/v2/EmployeeTime?$filter=userId in %s&$format=json",
-//					userId);
-			url = String.format("https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmployeeTime?$filter=userId in %s&$format=json",
+			url = String.format("https://api15.sapsf.cn/odata/v2/EmployeeTime?$filter=userId in %s&$format=json",
 					userId);
 			JsonNode node = requestService.getForObject(url, getHttpHeaders());
 			SapEmployeeTime dbEmployeeTime = null;

+ 2 - 2
code/sapparent/sapservice/src/main/java/org/fouram/service/SapOrgService.java

@@ -31,7 +31,7 @@ public class SapOrgService extends BaseService {
 
 	// FOCompany->FOBusinessUnit->FODivision->FODepartment->cust_orgunit4/cust_org4
 	private Map<String, String> getOrgMap(HttpHeaders headers, String entityName) throws Exception {
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/" + entityName + "?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/" + entityName + "?$format=json";
 		JsonNode node = requestService.getForObject(url, headers);
 		Map<String, String> empInfo = Maps.newHashMap();
 		if (node != null) {
@@ -83,7 +83,7 @@ public class SapOrgService extends BaseService {
 			userIds += "'" + sapUser.getUserId() + "',";
 			map.put(sapUser.getUserId(), sapUser);
 		}
-		String empUrl = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/EmpJob?$filter=userId in " + userIds + "&$format=json";
+		String empUrl = "https://api15.sapsf.cn/odata/v2/EmpJob?$filter=userId in " + userIds + "&$format=json";
 		JsonNode node = requestService.getForObject(empUrl, headers);
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerGlobalInfoCHNService.java

@@ -18,7 +18,7 @@ public class SapPerGlobalInfoCHNService extends BaseService {
 
 		delete("SapPerGlobalInfoCHNMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerGlobalInfoCHN?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/PerGlobalInfoCHN?$format=json";
 		JsonNode node = requestService.getForObject(url, headers);
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerNationalIdService.java

@@ -21,7 +21,7 @@ public class SapPerNationalIdService extends BaseService {
 	private RequestService requestService;
 
 	public void setCardInfo(List<SapUser> sapUsers) {
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerNationalId?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/PerNationalId?$format=json";
 		JsonNode jsonNode = requestService.getForObject(url, getHttpHeaders());
 		Map<String, String> nationalIdMap = Maps.newHashMap();
 		Map<String, String> cardTypeMap = Maps.newHashMap();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerPersonRelationshipService.java

@@ -19,7 +19,7 @@ public class SapPerPersonRelationshipService extends BaseService {
 
 		delete("SapPerPersonRelationshipMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPersonRelationship?$format=json&$expand=relPersonNav";
+		String url = "https://api15.sapsf.cn/odata/v2/PerPersonRelationship?$format=json&$expand=relPersonNav";
 		JsonNode node = requestService.getForObject(url, headers);
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPerPersonalService.java

@@ -16,7 +16,7 @@ public class SapPerPersonalService extends BaseService {
 
 		delete("SapPerPersonalMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPersonal?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/PerPersonal?$format=json";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPersonService.java

@@ -15,7 +15,7 @@ public class SapPersonService extends BaseService {
 	public void saveSapData() throws Exception {
 		delete("SapPerPersonMapper.deleteAll", null);
 
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPerson?$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/PerPerson?$format=json";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {
 			Iterator<JsonNode> iterator = node.get("d").get("results").elements();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapPersonalService.java

@@ -32,7 +32,7 @@ public class SapPersonalService extends BaseService {
 			}
 			map.get(sapUser.getPersonId()).add(sapUser);
 		}
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/PerPersonal?$filter=personIdExternal in " + personIds
+		String url = "https://api15.sapsf.cn/odata/v2/PerPersonal?$filter=personIdExternal in " + personIds
 				+ "&$format=json";
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		if (node != null) {

+ 18 - 18
code/sapparent/sapservice/src/main/java/org/fouram/service/SapReportService.java

@@ -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");

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapTimeTypeService.java

@@ -21,7 +21,7 @@ public class SapTimeTypeService extends BaseService {
 	private RequestService requestService;
 
 	public Map<String, String> getTimeTypeMap(List<SapUser> sapUsers) {
-		String url = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/TimeType?$filter=userId in %s&$format=json";
+		String url = "https://api15.sapsf.cn/odata/v2/TimeType?$filter=userId in %s&$format=json";
 		url = String.format(url, getUserIds(sapUsers));
 		JsonNode node = requestService.getForObject(url, getHttpHeaders());
 		Map<String, String> map = Maps.newHashMap();

+ 1 - 1
code/sapparent/sapservice/src/main/java/org/fouram/service/SapUserService.java

@@ -93,7 +93,7 @@ public class SapUserService extends BaseService {
 
 	public void saveOrUpdateSapUsers() throws Exception {
 		HttpHeaders headers = getHttpHeaders();
-		String userUrl = "https://api.cf.cn40.platform.sapcloud.cn/odata/v2/User?$filter=status in 'active'&$format=json&$expand=personKeyNav";
+		String userUrl = "https://api15.sapsf.cn/odata/v2/User?$filter=status in 'active'&$format=json&$expand=personKeyNav";
 		// get
 		JsonNode node = requestService.getForObject(userUrl, headers);
 		List<SapUser> sapUsers = Lists.newArrayList();