Merge branch 'script_gj' into 'master'

第三方匹配小区

See merge request !982
This commit is contained in:
2024-10-23 11:17:19 +08:00
@@ -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