Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
53f0815b
Commit
53f0815b
authored
Oct 14, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改请求错误的显示
parent
90bd87c1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
AreaHelper.java
...src/main/java/com/yanzuoguang/util/helper/AreaHelper.java
+5
-1
TestAreaHelper.java
yzg-util-base/src/test/java/helper/TestAreaHelper.java
+2
-0
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/AreaHelper.java
View file @
53f0815b
...
...
@@ -74,7 +74,11 @@ public class AreaHelper {
if
(
StringHelper
.
isEmpty
(
fromAreaId
)
||
fromAreaId
.
length
()
<=
3
)
{
return
fromAreaId
;
}
return
StringHelper
.
trimEnd
(
fromAreaId
,
"00"
);
String
to
=
StringHelper
.
trimEnd
(
fromAreaId
,
"00"
);
while
(
to
.
length
()
<
3
)
{
to
+=
"0"
;
}
return
to
;
}
/**
...
...
yzg-util-base/src/test/java/helper/TestAreaHelper.java
View file @
53f0815b
...
...
@@ -6,6 +6,8 @@ import org.junit.Test;
public
class
TestAreaHelper
{
@Test
public
void
test
()
{
System
.
out
.
println
(
AreaHelper
.
getSimple
(
"100000000"
));
String
from
=
"100500103"
;
// from = 1999;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment