提交 eac79edc 编写于 作者: Z zyyang

change

上级 6075751d
...@@ -190,9 +190,9 @@ public class SubTableService extends AbstractService { ...@@ -190,9 +190,9 @@ public class SubTableService extends AbstractService {
SubTableValueGenerator.disrupt(data, rate, range); SubTableValueGenerator.disrupt(data, rate, range);
// insert // insert
if (autoCreateTable) if (autoCreateTable)
affectRows = insertAutoCreateTable(data); affectRows += insertAutoCreateTable(data);
else else
affectRows = insert(data); affectRows += insert(data);
/***********************************************/ /***********************************************/
tableCnt += tableSize; tableCnt += tableSize;
} }
......
...@@ -17,7 +17,7 @@ public class TimeStampUtilTest { ...@@ -17,7 +17,7 @@ public class TimeStampUtilTest {
@Test @Test
public void longToDatetime() { public void longToDatetime() {
System.out.println(TimeStampUtil.longToDatetime(1293161600069l)); System.out.println(TimeStampUtil.longToDatetime(1293334499006l));
String datetime = TimeStampUtil.longToDatetime(1510000000000L); String datetime = TimeStampUtil.longToDatetime(1510000000000L);
assertEquals("2017-11-07 04:26:40.000", datetime); assertEquals("2017-11-07 04:26:40.000", datetime);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册