更新数据同步

This commit is contained in:
2025-11-17 19:50:14 +08:00
parent 6842f7043f
commit 8833034ee5
3 changed files with 8 additions and 7 deletions

View File

@@ -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;
}