提交 446354e6 编写于 作者: Z zhourui

dump显示序号没有++

上级 ffc0f83a
......@@ -78,7 +78,8 @@ public class DumpData {
EntityManager em = emf.createEntityManager();
try {
long estimateCount = this.estimateCount(em, cls);
logger.print("dump data({}/{}): {}, count: {}.", (i + 1), classNames.size(), cls.getName(), estimateCount);
logger.print("dump data({}/{}): {}, count: {}.", (i + 1), classNames.size(), cls.getName(),
estimateCount);
this.dump(cls, em, estimateCount);
} finally {
em.close();
......@@ -123,7 +124,7 @@ public class DumpData {
id = BeanUtils.getProperty(list.get(list.size() - 1), JpaObject.id_FIELDNAME);
File file = new File(directory, count + ".json");
FileUtils.write(file, pureGsonDateFormated.toJson(list), DefaultCharset.charset);
logger.print("dumping {}/{} part of data:{}.", loop, btach, cls.getName());
logger.print("dumping {}/{} part of data:{}.", loop++, btach, cls.getName());
}
em.clear();
} while (ListTools.isNotEmpty(list));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册