Explorar el Código

AppendUtils修改

gao.qiang hace 2 años
padre
commit
afc5014409

+ 5 - 5
base-common/src/main/java/com/ozs/common/utils/AppendUtils.java

@@ -26,9 +26,9 @@ public class AppendUtils {
             String[] split = d.split("\\.");
             StringBuilder stringBuilder = new StringBuilder();
             if (split.length==1){
-                stringBuilder.append("k"+split[0]+"+0");
+                stringBuilder.append("K"+split[0]+"+0");
             }else {
-                stringBuilder.append("k" + split[0]);
+                stringBuilder.append("K" + split[0]);
                 if (split.length > 1) {
                     stringBuilder.append("+");
                     Integer integer = Integer.parseInt(split[1]) * 100;
@@ -37,7 +37,7 @@ public class AppendUtils {
             }
             return stringBuilder.toString();
         } else {
-            return "k0+" + number;
+            return "K0+" + number;
         }
     }
 
@@ -51,7 +51,7 @@ public class AppendUtils {
         String[] split = miles.split("\\+");
         if (split.length>1) {
             for (char c : split[0].toCharArray()) {
-                if (c == 'K'|| c=='k') {
+                if (c == 'K') {
                     substring++;
                 }
             }
@@ -61,7 +61,7 @@ public class AppendUtils {
             return integer + number;
         }else {
             for (char c : miles.toCharArray()) {
-                if (c == 'K'|| c=='k') {
+                if (c == 'K') {
                     substring++;
                 }
             }