更新数据同步
This commit is contained in:
@@ -121,10 +121,10 @@ public class MysqlUtils {
|
||||
tableInfo.setTableSize(tableSize);
|
||||
tableInfo.setDataSource(dbName);
|
||||
tableInfo.setDataRows(tableRs.getLong("TABLE_ROWS"));
|
||||
Date createDate = tableRs.getTimestamp("CREATE_TIME");
|
||||
tableInfo.setCreateTime(createDate != null ? createDate : new Date());
|
||||
Date updateDate = tableRs.getTimestamp("UPDATE_TIME");
|
||||
tableInfo.setUpdateTime(updateDate != null ? updateDate : new Date());
|
||||
String createDate = tableRs.getString("CREATE_TIME");
|
||||
tableInfo.setCreateTime(createDate != null ? createDate : vDate.getNow());
|
||||
String updateDate = tableRs.getString("UPDATE_TIME");
|
||||
tableInfo.setUpdateTime(updateDate != null ? updateDate : vDate.getNow());
|
||||
tableInfo.setDs(DateUtils.dsValue());
|
||||
return tableInfo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user