根据城市量获取数据库
This commit is contained in:
+7
-2
@@ -42,8 +42,7 @@ class CcbCommonUtils {
|
|||||||
|
|
||||||
public static DSCollection dataStoreConnection = null;
|
public static DSCollection dataStoreConnection = null;
|
||||||
|
|
||||||
public static def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
public static def sqlInstance = null
|
||||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
|
||||||
|
|
||||||
|
|
||||||
public static def getRunningCitys(def args){
|
public static def getRunningCitys(def args){
|
||||||
@@ -53,10 +52,16 @@ class CcbCommonUtils {
|
|||||||
def countStr = args[0]
|
def countStr = args[0]
|
||||||
if(countStr=="344"){
|
if(countStr=="344"){
|
||||||
citys = CcbCommonUtils.citys_all
|
citys = CcbCommonUtils.citys_all
|
||||||
|
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.94:1521:orcl",
|
||||||
|
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||||
}else if(countStr=="92"){
|
}else if(countStr=="92"){
|
||||||
citys = CcbCommonUtils.citys_92
|
citys = CcbCommonUtils.citys_92
|
||||||
|
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||||
|
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||||
}else if(countStr=="252"){
|
}else if(countStr=="252"){
|
||||||
citys = CcbCommonUtils.citys_252
|
citys = CcbCommonUtils.citys_252
|
||||||
|
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.94:1521:orcl",
|
||||||
|
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
citys = CcbCommonUtils.citys_92
|
citys = CcbCommonUtils.citys_92
|
||||||
|
|||||||
Reference in New Issue
Block a user