记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
9cbdf052
Commit
9cbdf052
authored
Jul 31, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into test
parents
3ec31878
ea94bbaa
Changes
12
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
132 additions
and
215 deletions
+132
-215
PlatformDMController.java
...ervice/platform/controller/adam/PlatformDMController.java
+87
-169
DataMigrationProcessorService.java
...m/service/impl/adam/dm/DataMigrationProcessorService.java
+1
-1
DMAddressesProcessor.java
.../service/impl/adam/dm/processor/DMAddressesProcessor.java
+5
-5
DMCollectionProcessor.java
...service/impl/adam/dm/processor/DMCollectionProcessor.java
+5
-5
DMEntersProcessor.java
...orm/service/impl/adam/dm/processor/DMEntersProcessor.java
+5
-5
DMMemberCodeProcessor.java
...service/impl/adam/dm/processor/DMMemberCodeProcessor.java
+5
-5
DMMemberOrderProcessor.java
...ervice/impl/adam/dm/processor/DMMemberOrderProcessor.java
+5
-5
DMRealNameProcessor.java
...m/service/impl/adam/dm/processor/DMRealNameProcessor.java
+5
-5
DMThirdPartsProcessor.java
...service/impl/adam/dm/processor/DMThirdPartsProcessor.java
+5
-5
DMTracesInfoProcessor.java
...service/impl/adam/dm/processor/DMTracesInfoProcessor.java
+1
-1
DMUserInformationProcessor.java
...ce/impl/adam/dm/processor/DMUserInformationProcessor.java
+3
-4
DMUserMemberProcessor.java
...service/impl/adam/dm/processor/DMUserMemberProcessor.java
+5
-5
No files found.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/controller/adam/PlatformDMController.java
View file @
9cbdf052
This diff is collapsed.
Click to expand it.
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/DataMigrationProcessorService.java
View file @
9cbdf052
...
...
@@ -46,5 +46,5 @@ public abstract class DataMigrationProcessorService {
return
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
}
protected
abstract
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
lS
,
String
incrDt
,
String
flg
,
String
flu
);
protected
abstract
void
dataProcessing
(
Integer
dg
,
Integer
lS
,
String
incrDt
,
String
flg
,
String
flu
);
}
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMAddressesProcessor.java
View file @
9cbdf052
...
...
@@ -28,7 +28,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.addresses:{}"
,
userMapper
.
executeForDM
(
"adam_addresses"
));
// log.info("DM.flush.AdamAddressesVo:{}", mongoTemplate.remove(Query.query(Criteria.where("_id").exists(true)), AdamAddressesVo.class.getSimpleName()).getDeletedCount());
...
...
@@ -48,12 +48,12 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_MALL, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -118,7 +118,7 @@ public class DMAddressesProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMCollectionProcessor.java
View file @
9cbdf052
...
...
@@ -28,7 +28,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.collection:{}"
,
userMapper
.
executeForDM
(
"adam_collection"
));
...
...
@@ -49,12 +49,12 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -109,7 +109,7 @@ public class DMCollectionProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMEntersProcessor.java
View file @
9cbdf052
...
...
@@ -28,7 +28,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.enters:{}"
,
userMapper
.
executeForDM
(
"adam_enters"
));
...
...
@@ -51,12 +51,12 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_MALL, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_MALL
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -122,7 +122,7 @@ public class DMEntersProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMMemberCodeProcessor.java
View file @
9cbdf052
...
...
@@ -182,7 +182,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member_code:{}"
,
userMapper
.
executeForDM
(
"adam_member_code"
));
...
...
@@ -199,12 +199,12 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
String
sql
=
sqlCount
.
replace
(
"count(1)"
,
field
);
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -273,7 +273,7 @@ public class DMMemberCodeProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMMemberOrderProcessor.java
View file @
9cbdf052
...
...
@@ -52,7 +52,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member_order:{}"
,
userMapper
.
executeForDM
(
"adam_member_order"
));
...
...
@@ -74,12 +74,12 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -154,7 +154,7 @@ public class DMMemberOrderProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMRealNameProcessor.java
View file @
9cbdf052
...
...
@@ -28,7 +28,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.real_name:{}"
,
userMapper
.
executeForDM
(
"adam_real_name"
));
...
...
@@ -49,12 +49,12 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -121,7 +121,7 @@ public class DMRealNameProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMThirdPartsProcessor.java
View file @
9cbdf052
...
...
@@ -30,7 +30,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.third_party:{}"
,
userMapper
.
executeForDM
(
"adam_third_party"
));
...
...
@@ -54,12 +54,12 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
sql
+=
" order by id limit ?,?"
;
LocalDateTime
currentYear
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
"2021-01-01 00:00:00"
);
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -130,7 +130,7 @@ public class DMThirdPartsProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMTracesInfoProcessor.java
View file @
9cbdf052
...
...
@@ -32,7 +32,7 @@ public class DMTracesInfoProcessor extends DataMigrationProcessorService {
AdamMemberPriceMapper
memberPriceMapper
;
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.member:{}"
,
userMapper
.
executeForDM
(
"adam_member"
));
log
.
info
(
"DM.flush.member_price:{}"
,
userMapper
.
executeForDM
(
"adam_member_price"
));
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMUserInformationProcessor.java
View file @
9cbdf052
...
...
@@ -47,7 +47,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.user:{}"
,
userMapper
.
executeForDM
(
"adam_user"
));
log
.
info
(
"DM.flush.user_info:{}"
,
userMapper
.
executeForDM
(
"adam_user_info"
));
...
...
@@ -70,8 +70,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by uid limit ?,?"
;
LocalDateTime
currentYear
=
DateUtil
.
Formatter
.
yyyyMMddHHmmss
.
parse
(
"2021-01-01 00:00:00"
);
// Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
...
...
@@ -170,7 +169,7 @@ public class DMUserInformationProcessor extends DataMigrationProcessorService {
}
log
.
info
(
"DM.execute.counts:{}/{},{} ~ {} ----------------------------> end"
,
pl
,
num
,
pSize
,
tl
);
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
liquidnet-bus-service/liquidnet-service-platform/liquidnet-service-platform-impl/src/main/java/com/liquidnet/service/platform/service/impl/adam/dm/processor/DMUserMemberProcessor.java
View file @
9cbdf052
...
...
@@ -28,7 +28,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
@SneakyThrows
@Override
public
void
dataProcessing
(
Connection
connection
,
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
public
void
dataProcessing
(
Integer
dg
,
Integer
dG
,
String
incrDt
,
String
flg
,
String
flu
)
{
if
(
StringUtils
.
isNotEmpty
(
flu
))
{
log
.
info
(
"DM.flush.user_member:{}"
,
userMapper
.
executeForDM
(
"adam_user_member"
));
...
...
@@ -49,12 +49,12 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
}
sql
+=
" order by id limit ?,?"
;
//
Connection connection = null;
Connection
connection
=
null
;
PreparedStatement
statement
=
null
;
ResultSetImpl
row
=
null
;
try
{
//
Class.forName(DB_DRIVER);
//
connection = DriverManager.getConnection(DB_URL + DB_NAME_PASSPORT, DB_USER, DB_PWD);
Class
.
forName
(
DB_DRIVER
);
connection
=
DriverManager
.
getConnection
(
DB_URL
+
DB_NAME_PASSPORT
,
DB_USER
,
DB_PWD
);
statement
=
connection
.
prepareStatement
(
sqlCount
);
row
=
(
ResultSetImpl
)
statement
.
executeQuery
();
row
.
first
();
...
...
@@ -127,7 +127,7 @@ public class DMUserMemberProcessor extends DataMigrationProcessorService {
dmRdmService
.
setMaxMemberNo
(
Integer
.
parseInt
(
max
.
getMemberNo
()));
}
}
catch
(
Exception
e
)
{
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
,msg:{}"
,
dG
,
dg
,
e
.
getMessage
()
);
log
.
error
(
"ex:getConnection,dG/dg:{}/{}
"
,
dG
,
dg
,
e
);
}
try
{
if
(
null
!=
row
)
row
.
close
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment