更新数据同步
This commit is contained in:
@@ -32,7 +32,7 @@ public class DataTableInfo implements Serializable {
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField("create_time")
|
||||
private Date createTime;
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 数据表唯一标识(主键)
|
||||
@@ -80,7 +80,7 @@ public class DataTableInfo implements Serializable {
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField("update_time")
|
||||
private Date updateTime;
|
||||
private String updateTime;
|
||||
|
||||
/**
|
||||
* 备注信息
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -248,7 +248,8 @@
|
||||
<span class="text-xs bg-red-100 text-red-600 px-2 py-0.5 rounded"
|
||||
th:text="${todo.getPriority()}"></span>
|
||||
</div>
|
||||
<p class="text-sm text-gray-600 mt-1" th:text="${todo.getTaskDesc()}"></p>
|
||||
<p class="text-sm text-gray-600 mt-1" th:text="${todo.getSubTaskName()}"></p>
|
||||
<p class="text-sm text-gray-600 mt-1" th:utext="${todo.getTaskDesc()}"></p>
|
||||
<div class="flex justify-between items-center mt-2">
|
||||
<span class="text-xs text-gray-500">截止日期:<span
|
||||
th:text="${todo.getDeadline()}"></span></span>
|
||||
|
||||
Reference in New Issue
Block a user