Commit 32e9c98c by chenweisong

更新

parent 1f53fad8
...@@ -100,7 +100,8 @@ public class DataFileUtil { ...@@ -100,7 +100,8 @@ public class DataFileUtil {
BufferedReader br = null; BufferedReader br = null;
StringBuffer sb = null; StringBuffer sb = null;
try { try {
br = new BufferedReader(new InputStreamReader(new FileInputStream(multipartFileToFile(file)), "utf-8")); //这里可以控制编码 InputStream inputStream = file.getInputStream();
br = new BufferedReader(new InputStreamReader(inputStream, "utf-8")); //这里可以控制编码
sb = new StringBuffer(); sb = new StringBuffer();
String line = null; String line = null;
int count = 0; int count = 0;
......
...@@ -133,7 +133,7 @@ public class TemplateController { ...@@ -133,7 +133,7 @@ public class TemplateController {
} }
@ApiOperation(value = "按列名拆分excel") @ApiOperation(value = "按列名拆分excel", hidden = true)
@ApiImplicitParams({ @ApiImplicitParams({
@ApiImplicitParam(name = "columnName", required = true, value = "列名称", dataType = "string", paramType = "query") @ApiImplicitParam(name = "columnName", required = true, value = "列名称", dataType = "string", paramType = "query")
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment