Commit 7e50e41b authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent a2e61075
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 fromAreaId
* @return
* @param fromCountId 城市ID
* @return 城市ID
*/
public static String getCountryId(String fromAreaId) {
return getLengthId(fromAreaId, COUNTRY_LENGTH);
public static String getCountryId(String fromCountId) {
return getLengthId(fromCountId, COUNTRY_LENGTH);
}
/**
* 获取地区Id
*
* @param fromAreaId
* @return
* @param fromProvinceId 地区Id
* @return 省份ID
*/
public static String getProvinceId(String fromAreaId) {
return getLengthId(fromAreaId, PROVINCE_LENGTH);
public static String getProvinceId(String fromProvinceId) {
return getLengthId(fromProvinceId, PROVINCE_LENGTH);
}
/**
* 获取地区Id
*
* @param fromAreaId
* @return
* @param fromCityId 地区ID
* @return 返回值
*/
public static String getCityId(String fromAreaId) {
return getLengthId(fromAreaId, CITY_LENGTH);
public static String getCityId(String fromCityId) {
return getLengthId(fromCityId, CITY_LENGTH);
}
/**
* 获取地区Id
*
* @param fromAreaId
* @return
* @param fromAreaId 地区ID
* @return 返回值
*/
public static String getAreaId(String fromAreaId) {
return getLengthId(fromAreaId, AREA_LENGTH);
......
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