9af4a544
王彪总
新项目
|
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
|
package com.zteits.park.domain;
import org.apache.commons.lang3.StringUtils;
import com.clouds.common.utils.DateUtil;
public class TpPEqpLogSplitTable extends TpPEqpLog{
private String tableName;
public String getTableName() {
if(StringUtils.isBlank(tableName)){
String yyyyMM = DateUtil.getDateString(DateUtil.YYYYMM);
this.tableName = "tp_p_eqp_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_eqp_log"+year+month;
}
}
|