Merge branch 'script_gj' into 'master'

update

See merge request !1034
This commit is contained in:
2024-12-17 11:17:02 +08:00
2 changed files with 2 additions and 8 deletions
@@ -40,7 +40,7 @@ class ThirdPriceMappingBatch extends BaseBatch{
@Override @Override
public void process(Object args) { public void process(Object args) {
// //将新增数据同步过来 // //将新增数据同步过来
// addNemCommunity() addNemCommunity()
//// //接口进行匹配 //// //接口进行匹配
match() match()
@@ -52,9 +52,6 @@ class ThirdPriceMappingBatch extends BaseBatch{
def index = 0 def index = 0
for(def c : citys){ for(def c : citys){
index ++ index ++
if(index < 206){
continue
}
def query = new BasicDBObject("city", c).append("match_id", new BasicDBObject('$exists', false)) def query = new BasicDBObject("city", c).append("match_id", new BasicDBObject('$exists', false))
def noMatchDatas = thirdSeaweedMappingColl.find(query).toList() def noMatchDatas = thirdSeaweedMappingColl.find(query).toList()
matchByCity(c, noMatchDatas) matchByCity(c, noMatchDatas)
@@ -123,9 +120,6 @@ class ThirdPriceMappingBatch extends BaseBatch{
def index = 0 def index = 0
for(def c : citys){ for(def c : citys){
index ++ 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
@@ -39,7 +39,7 @@ class AddDistImagesBatch extends BaseBatch{
@Override @Override
public void process(Object args) { public void process(Object args) {
def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -1), "yyyy-MM-dd") def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -1), "yyyy-MM-dd")
def mdate = DateUtils.getFirstDayOfMonth(new Date(), -1) // def mdate = DateUtils.getFirstDayOfMonth(new Date(), -1)
def citys = CommonUtils.findAllCity() def citys = CommonUtils.findAllCity()
citys.each {city-> citys.each {city->
def communitys = findAllEsData2(city, mdate) def communitys = findAllEsData2(city, mdate)