liupeng před 5 roky
rodič
revize
f94f74cd8f

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

@@ -71,22 +71,22 @@ public abstract class BaseService {
 		return userIds;
 	}
 	
-	public static String formatPosition(String position) {
-		if(Tools.isEmpty(position)) {
+	public static String formatPosition(String str) {
+		if(Tools.isEmpty(str)) {
 			return "";
 		}
-		position = position.replace("\n", "");
-		return position;
+		str = str.replace("\n", "");
+		return str;
 	}
 	
-	public static String formatBusinessPhone(String businessPhone) {
-		if(Tools.isEmpty(businessPhone)) {
+	public static String formatBusinessPhone(String str) {
+		if(Tools.isEmpty(str)) {
 			return "";
 		}
 		// 021 80171999 -> 021-80171999
-		if(businessPhone.length() == 12) {
-			businessPhone = businessPhone.replace(" ", "-");
+		if(str.length() == 12) {
+			str = str.replace(" ", "-");
 		}
-		return businessPhone;
+		return str;
 	}
 }