加拼音
This commit is contained in:
+9
-7
@@ -157,15 +157,15 @@ class SeaweedDataSynch extends BaseBatch{
|
||||
|
||||
def dists = updating(c, "district")
|
||||
updateEs(c, dists, "district", "192.168.0.89")
|
||||
updateEs(c, dists, "district", "192.168.0.52")
|
||||
// updateEs(c, dists, "district", "192.168.0.52")
|
||||
|
||||
def offices = updating(c, "office")
|
||||
updateEs(c, offices, "office", "192.168.0.89")
|
||||
updateEs(c, offices, "office", "192.168.0.52")
|
||||
// updateEs(c, offices, "office", "192.168.0.52")
|
||||
|
||||
def shops = updating(c, "shop")
|
||||
updateEs(c, shops, "shop", "192.168.0.89")
|
||||
updateEs(c, shops, "shop", "192.168.0.52")
|
||||
// updateEs(c, shops, "shop", "192.168.0.52")
|
||||
|
||||
println index +" "+ c + " 完成 "+new Date().toString()
|
||||
}
|
||||
@@ -323,16 +323,17 @@ class SeaweedDataSynch extends BaseBatch{
|
||||
def map = [:]
|
||||
map._id = dist._id
|
||||
def area_code = null
|
||||
def province = provinceMap.get(dist.city)
|
||||
if(province){
|
||||
map.province = ProvinceData.getFullProvince(province)
|
||||
}
|
||||
// def province = provinceMap.get(dist.city)
|
||||
// if(province){
|
||||
// map.province = ProvinceData.getFullProvince(province)
|
||||
// }
|
||||
// map.fangjia_province = province
|
||||
|
||||
def data = fullCityMap.get(dist.city)
|
||||
if(data){
|
||||
map.city = data.city
|
||||
area_code = data.mca_city_code
|
||||
map.province = data.province
|
||||
}
|
||||
// map.fangjia_city = dist.city
|
||||
|
||||
@@ -467,6 +468,7 @@ class SeaweedDataSynch extends BaseBatch{
|
||||
}
|
||||
}
|
||||
map.status = 0
|
||||
map.name_pinyin = com.fangjia.core.util.DataUtil.hanyuQuanpin(map.name, " ")
|
||||
// map.update_date = org.apache.commons.httpclient.util.DateUtil.formatDate(new Date(),"yyyy-MM-dd HH:mm:ss").replace(" ","T")
|
||||
return map
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user