+3
-9
@@ -31,8 +31,8 @@ class BigdataCommunityGJRHBatch extends BaseBatch {
|
|||||||
|
|
||||||
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
|
public static ExecutorService fixedThreadPool = Executors.newFixedThreadPool(80)
|
||||||
|
|
||||||
|
def sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
||||||
def sqlInstance = null
|
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
||||||
|
|
||||||
public static def batchsize = 1000
|
public static def batchsize = 1000
|
||||||
static main(args) {
|
static main(args) {
|
||||||
@@ -42,13 +42,7 @@ class BigdataCommunityGJRHBatch extends BaseBatch {
|
|||||||
@Override
|
@Override
|
||||||
public void process(Object args) {
|
public void process(Object args) {
|
||||||
def citys = CcbCommonUtils.getRunningCitys(args)
|
def citys = CcbCommonUtils.getRunningCitys(args)
|
||||||
if(citys.size()==92){
|
|
||||||
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.236:1521:orcl",
|
|
||||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
|
||||||
}else{
|
|
||||||
sqlInstance = Sql.newInstance("jdbc:oracle:thin:@192.168.0.94:1521:orcl",
|
|
||||||
"GOOJIA", "GOOJIA", "oracle.jdbc.driver.OracleDriver")
|
|
||||||
}
|
|
||||||
def rows = []
|
def rows = []
|
||||||
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
def cityCodeDataMap = CcbCommonUtils.findCityCodeValue()
|
||||||
// for (def city : citys) {
|
// for (def city : citys) {
|
||||||
|
|||||||
Reference in New Issue
Block a user