|
@@ -55,7 +55,7 @@ public class DataMySQL2OracleService extends DataSourceOra {
|
|
|
String inSql = "";
|
|
|
if (rsC.next()) {
|
|
|
inSql = rsC.getString("insertSql");
|
|
|
- System.out.println(inSql);
|
|
|
+// System.out.println(inSql);
|
|
|
}
|
|
|
try {
|
|
|
String sqlL = "select create_time_str from data_sync_upnum where table_id=(select max( table_id ) from data_sync_upnum where repo_name='" + repo_name + "')";
|
|
@@ -64,10 +64,10 @@ public class DataMySQL2OracleService extends DataSourceOra {
|
|
|
if (rsL.next()) {
|
|
|
timeL = rsL.getString("create_time_str");
|
|
|
String sqlI = "select * from " + table_name + " where date_format(create_date,'%Y%m%d')> date_format('" + timeL + "','%Y%m%d')";
|
|
|
- System.out.println(sqlI);
|
|
|
+// System.out.println(sqlI);
|
|
|
rsI = stmtI.executeQuery(sqlI);
|
|
|
String sqlU = "select * from " + table_name + " where date_format(create_date,'%Y%m%d')<date_format('" + timeL + "','%Y%m%d') and date_format(update_date,'%Y%m%d')>date_format('" + timeL + "','%Y%m%d')";
|
|
|
- System.out.println(sqlU);
|
|
|
+// System.out.println(sqlU);
|
|
|
rsU = stmtU.executeQuery(sqlU);
|
|
|
}
|
|
|
DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|