|
@@ -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;
|
|
|
}
|
|
|
}
|