Merge branch 'script_gj' into 'master'

update

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