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