端口修改
This commit is contained in:
+1
-2
@@ -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){
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
|
||||
+3
-3
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user