TpPInterfaceLogSplitTable.java
1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.zteits.park.domain;
import org.apache.commons.lang3.StringUtils;
import com.clouds.common.utils.DateUtil;
/**
* 年月表分表表名
*
* Copyright: Copyright (c) 2017 zteits
*
* @ClassName: TpPInterfaceLogSplitTable.java
* @Description:
* @version: v1.0.0
* @author: zhaowg
* @date: 2017年8月30日 下午4:18:42
* Modification History:
* Date Author Version Description
*---------------------------------------------------------*
* 2017年8月30日 zhaowg v1.0.0 创建
*/
public class TpPInterfaceLogSplitTable extends TpPInterfaceLogWithBLOBs{
private String tableName;
public String getTableName() {
if(StringUtils.isBlank(tableName)){
String yyyyMM = DateUtil.getDateString(DateUtil.YYYYMM);
this.tableName = "tp_p_interface_log"+yyyyMM;
}
return tableName;
}
/**
* 设置表名
* @param year 格式yyyy
* @param month 格式MM
* 2017年8月30日 zhaowg
*/
public void setTableName(String year,String month) {
this.tableName = "tp_p_interface_log"+year+month;
}
}