Commit 53f0815b authored by yanzg's avatar yanzg

修改请求错误的显示

parent 90bd87c1
...@@ -74,7 +74,11 @@ public class AreaHelper { ...@@ -74,7 +74,11 @@ public class AreaHelper {
if (StringHelper.isEmpty(fromAreaId) || fromAreaId.length() <= 3) { if (StringHelper.isEmpty(fromAreaId) || fromAreaId.length() <= 3) {
return fromAreaId; return fromAreaId;
} }
return StringHelper.trimEnd(fromAreaId, "00"); String to = StringHelper.trimEnd(fromAreaId, "00");
while (to.length() < 3) {
to += "0";
}
return to;
} }
/** /**
......
...@@ -6,6 +6,8 @@ import org.junit.Test; ...@@ -6,6 +6,8 @@ import org.junit.Test;
public class TestAreaHelper { public class TestAreaHelper {
@Test @Test
public void test() { public void test() {
System.out.println(AreaHelper.getSimple("100000000"));
String from = "100500103"; String from = "100500103";
// from = 1999; // from = 1999;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment