This commit is contained in:
Looly 2020-11-09 10:24:09 +08:00
parent ab410d2e93
commit 37dda15906
5 changed files with 16 additions and 3 deletions

View File

@ -11,6 +11,8 @@
* 【extra 】 增加ValidationUtilpr#207@Gitee
* 【core 】 反射调用支持传递参数的值为nullpr#1205@Github
* 【core 】 HexUtil增加format方法issue#I245NF@Gitee
* 【poi 】 ExcelWriter增加setCurrentRowToEnd方法issue#I24A2R@Gitee
* 【core 】 ExcelWriter增加setCurrentRowToEnd方法issue#I24A2R@Gitee
### Bug修复
* 【core 】 修复DateUtil.current使用System.nanoTime的问题issue#1198@Github

View File

@ -782,7 +782,7 @@ public class URLUtil {
* @since 5.3.11
*/
public static String getDataUriBase64(String mimeType, String data) {
return getDataUri(mimeType, null, "BASE64", data);
return getDataUri(mimeType, null, "base64", data);
}
/**

View File

@ -16,7 +16,9 @@ public class CsvReaderTest {
public void readTest() {
CsvReader reader = new CsvReader();
CsvData data = reader.read(ResourceUtil.getReader("test.csv", CharsetUtil.CHARSET_UTF_8));
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(2));
Assert.assertEquals("sss,sss", data.getRow(0).get(0));
Assert.assertEquals("性别", data.getRow(0).get(2));
Assert.assertEquals("关注\"对象\"", data.getRow(0).get(3));
}
@Test

View File

@ -1 +1 @@
姓名,"性别",关注"对象",年龄
"sss,sss",姓名,"性别",关注"对象",年龄
Can't render this file because it contains an unexpected character in line 1 and column 23.

View File

@ -392,6 +392,15 @@ public class ExcelWriter extends ExcelBase<ExcelWriter> {
return this;
}
/**
* 定位到最后一行的后边用于追加数据
* @return this
* @since 5.5.0
*/
public ExcelWriter setCurrentRowToEnd(){
return setCurrentRow(getRowCount());
}
/**
* 跳过当前行
*