Merge branch 'script_gj' into 'master'

端口修改

See merge request !1122
This commit is contained in:
2025-04-21 13:14:35 +08:00
3 changed files with 5 additions and 6 deletions
@@ -50,8 +50,7 @@ class CcbCommonUtils {
public static def sqlInstance = null
public static def pgsqlInstance = Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse",
"postgres", "postgres", "org.postgresql.Driver")
public static def pgsqlInstance = null //Sql.newInstance("jdbc:postgresql://192.168.0.236:5432/warehouse","postgres", "postgres", "org.postgresql.Driver")
public static def getRunningCitys(def args){
@@ -55,7 +55,7 @@ class AddressUtil {
* 初始化城市数据
*/
static def initCityMap() {
Mongo mongo = new Mongo("mongo.db.fangjia.com", 27017);
Mongo mongo = new Mongo("mongo.db.fangjia.com", 28017);
DBCollection SERVER_AREA = mongo.getDB("fangjia").getCollection("server_area");
DBCursor cursor = SERVER_AREA.find(new BasicDBObject(), new BasicDBObject("display", 1).append("city_grade", 1));
for(DBObject dbObject : cursor) {
@@ -51,11 +51,11 @@ class ApiProductFieldStatBatch extends BaseBatch {
//成交数据
static final DBCollection deal_price_coll = MongoUtils.getCollectionByName("fangjia", "deal_price", "mongo.db.fangjia.com")
//中介
static final DBCollection agency_mount_level_coll = MongoUtils.getCollectionByName("fangjia_stat", "pds.agency_mount_level", "mongo.db.fangjia.com", 27017)
static final DBCollection agency_mount_level_coll = MongoUtils.getCollectionByName("fangjia_stat", "pds.agency_mount_level", "mongo.db.fangjia.com", 28017)
//租金
static final DBCollection district_stat_rent_coll = MongoUtils.getCollectionByName("fangjia", "district_stat_rent", "mongo.db.fangjia.com", 27017)
static final DBCollection district_stat_rent_coll = MongoUtils.getCollectionByName("fangjia", "district_stat_rent", "mongo.db.fangjia.com", 28017)
//城市
static final DBCollection server_area_coll = MongoUtils.getCollectionByName("fangjia", "server_area", "mongo.db.fangjia.com", 27017)
static final DBCollection server_area_coll = MongoUtils.getCollectionByName("fangjia", "server_area", "mongo.db.fangjia.com", 28017)
//poi
static final DBCollection district_nearby_coll = MongoUtils.getCollectionByName("fangjia", "district_nearby", "mongo.db.fangjia.com")