This commit is contained in:
2025-09-02 12:07:02 +08:00
parent b58faec67e
commit 47c3e8c8c5
@@ -39,16 +39,17 @@ class ThirdPriceMappingBatch extends BaseBatch{
@Override @Override
public void process(Object args) { public void process(Object args) {
def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity()
// //将新增数据同步过来 // //将新增数据同步过来
addNemCommunity() // addNemCommunity(citys)
//// //接口进行匹配 //// //接口进行匹配
match() match(citys)
addOldMatchResult() addOldMatchResult(citys)
} }
def match(){ def match(citys){
def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity()
def index = 0 def index = 0
for(def c : citys){ for(def c : citys){
index ++ index ++
@@ -114,8 +115,8 @@ class ThirdPriceMappingBatch extends BaseBatch{
return addCount.get(); return addCount.get();
} }
def addNemCommunity(){ def addNemCommunity(citys){
def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity() // def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity()
def total = 0 def total = 0
def index = 0 def index = 0
for(def c : citys){ for(def c : citys){
@@ -172,8 +173,8 @@ class ThirdPriceMappingBatch extends BaseBatch{
return addCount.get(); return addCount.get();
} }
def addOldMatchResult(){ def addOldMatchResult(citys){
def citys = CommonUtils.findAllCity() // def citys = CommonUtils.findAllCity()
def keys = new BasicDBObject() def keys = new BasicDBObject()
keys.put("_id", 1) keys.put("_id", 1)
keys.put("city", 1) keys.put("city", 1)