package com.wgcloud.entity;
|
|
import com.wgcloud.util.DateUtil;
|
import org.apache.commons.lang3.StringUtils;
|
|
import java.util.Date;
|
|
/**
|
* @version v3.3
|
* @ClassName:DbTableCount.java
|
* @author: http://www.wgstart.com
|
* @date: 2021年1月16日
|
* @Description: 数据表统计信息
|
* @Copyright: 2019-2021 wgcloud. All rights reserved.
|
*/
|
public class DbTableCount extends BaseEntity {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 表id
|
*/
|
private String dbTableId;
|
|
/**
|
* w数据量
|
*/
|
private Long tableCount;
|
|
/**
|
* 添加时间
|
* MM-dd hh:mm:ss
|
*/
|
private String dateStr;
|
|
/**
|
* 创建时间
|
*/
|
private Date createTime;
|
|
public String getDbTableId() {
|
return dbTableId;
|
}
|
|
public void setDbTableId(String dbTableId) {
|
this.dbTableId = dbTableId;
|
}
|
|
public Long getTableCount() {
|
return tableCount;
|
}
|
|
public void setTableCount(Long tableCount) {
|
this.tableCount = tableCount;
|
}
|
|
public String getDateStr() {
|
String s = DateUtil.getDateTimeString(this.getCreateTime());
|
if (!StringUtils.isEmpty(s) && s.length() > 16) {
|
return s.substring(5);
|
}
|
return dateStr;
|
}
|
|
public void setDateStr(String dateStr) {
|
this.dateStr = dateStr;
|
}
|
|
public Date getCreateTime() {
|
return createTime;
|
}
|
|
public void setCreateTime(Date createTime) {
|
this.createTime = createTime;
|
}
|
}
|