第三方匹配小区
This commit is contained in:
+7
-2
@@ -46,9 +46,9 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
// //将新增数据同步过来
|
// //将新增数据同步过来
|
||||||
addNemCommunity()
|
addNemCommunity()
|
||||||
// //接口进行匹配
|
// //接口进行匹配
|
||||||
// match()
|
match()
|
||||||
|
|
||||||
// addOldMatchResult()
|
addOldMatchResult()
|
||||||
}
|
}
|
||||||
|
|
||||||
def match(){
|
def match(){
|
||||||
@@ -119,7 +119,12 @@ class ThirdPriceMappingBatch extends BaseBatch{
|
|||||||
def addNemCommunity(){
|
def addNemCommunity(){
|
||||||
def citys = CommonUtils.findAllCity()
|
def citys = CommonUtils.findAllCity()
|
||||||
def total = 0
|
def total = 0
|
||||||
|
def index = 0
|
||||||
for(def c : citys){
|
for(def c : citys){
|
||||||
|
index ++
|
||||||
|
if(index < 70){
|
||||||
|
continue
|
||||||
|
}
|
||||||
def crawlDatas = thirdPartyPriceColl.find(new BasicDBObject("city", c).append("s_date", curDate)).toList()
|
def crawlDatas = thirdPartyPriceColl.find(new BasicDBObject("city", c).append("s_date", curDate)).toList()
|
||||||
def addCount = addDatasToDB(crawlDatas)
|
def addCount = addDatasToDB(crawlDatas)
|
||||||
println c + " 新增:"+ addCount
|
println c + " 新增:"+ addCount
|
||||||
|
|||||||
Reference in New Issue
Block a user