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
7e50e41b
Commit
7e50e41b
authored
Dec 11, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志打印功能,打印更加详细的日志
parent
a2e61075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
AreaHelper.java
...src/main/java/com/yanzuoguang/util/helper/AreaHelper.java
+14
-15
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/helper/AreaHelper.java
View file @
7e50e41b
package
com
.
yanzuoguang
.
util
.
helper
;
import
com.yanzuoguang.util.YzgError
;
import
com.yanzuoguang.util.exception.CodeException
;
public
class
AreaHelper
{
public
static
final
int
COUNTRY_LENGTH
=
3
;
...
...
@@ -12,38 +11,38 @@ public class AreaHelper {
/**
* 获取地区Id
*
* @param from
AreaId
* @return
* @param from
CountId 城市ID
* @return
城市ID
*/
public
static
String
getCountryId
(
String
from
Area
Id
)
{
return
getLengthId
(
from
Area
Id
,
COUNTRY_LENGTH
);
public
static
String
getCountryId
(
String
from
Count
Id
)
{
return
getLengthId
(
from
Count
Id
,
COUNTRY_LENGTH
);
}
/**
* 获取地区Id
*
* @param from
Area
Id
* @return
* @param from
ProvinceId 地区
Id
* @return
省份ID
*/
public
static
String
getProvinceId
(
String
from
Area
Id
)
{
return
getLengthId
(
from
Area
Id
,
PROVINCE_LENGTH
);
public
static
String
getProvinceId
(
String
from
Province
Id
)
{
return
getLengthId
(
from
Province
Id
,
PROVINCE_LENGTH
);
}
/**
* 获取地区Id
*
* @param from
AreaId
* @return
* @param from
CityId 地区ID
* @return
返回值
*/
public
static
String
getCityId
(
String
from
Area
Id
)
{
return
getLengthId
(
from
Area
Id
,
CITY_LENGTH
);
public
static
String
getCityId
(
String
from
City
Id
)
{
return
getLengthId
(
from
City
Id
,
CITY_LENGTH
);
}
/**
* 获取地区Id
*
* @param fromAreaId
* @return
* @param fromAreaId
地区ID
* @return
返回值
*/
public
static
String
getAreaId
(
String
fromAreaId
)
{
return
getLengthId
(
fromAreaId
,
AREA_LENGTH
);
...
...
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