|
|
@ -103,8 +103,9 @@ public class DataEaseModel {
|
|
|
|
* @return 城市编码
|
|
|
|
* @return 城市编码
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
public String getCityCode(String cityName) {
|
|
|
|
public String getCityCode(String cityName) {
|
|
|
|
|
|
|
|
String full_name = getFullAreaName(cityName);
|
|
|
|
String sql = "select area_code from t_city_code where area_name=?";
|
|
|
|
String sql = "select area_code from t_city_code where area_name=?";
|
|
|
|
return Db.findFirst(sql, cityName).getStr("area_code");
|
|
|
|
return Db.findFirst(sql, full_name).getStr("area_code");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|