提交 9f51920c authored 作者: taojinlong's avatar taojinlong

fix: 抽取excel 数据

上级 439e9da1
...@@ -1129,7 +1129,7 @@ public class ExtractDataService { ...@@ -1129,7 +1129,7 @@ public class ExtractDataService {
" get(Fields.Out, filed).setValue(r, 0);\n" + " get(Fields.Out, filed).setValue(r, 0);\n" +
" get(Fields.Out, filed).getValueMeta().setType(2);\n" + " get(Fields.Out, filed).getValueMeta().setType(2);\n" +
" }\n" + " }\n" +
" }\n"; " }\n" ;
private final static String handleExcelIntColumn = " \t\tif(tmp != null && tmp.endsWith(\".0\")){\n" + private final static String handleExcelIntColumn = " \t\tif(tmp != null && tmp.endsWith(\".0\")){\n" +
" try {\n" + " try {\n" +
...@@ -1144,7 +1144,11 @@ public class ExtractDataService { ...@@ -1144,7 +1144,11 @@ public class ExtractDataService {
" tmp = tmp.replaceAll(\"\\r\",\" \");\n" + " tmp = tmp.replaceAll(\"\\r\",\" \");\n" +
" tmp = tmp.replaceAll(\"\\n\",\" \");\n" + " tmp = tmp.replaceAll(\"\\n\",\" \");\n" +
" get(Fields.Out, filed).setValue(r, tmp);\n" + " get(Fields.Out, filed).setValue(r, tmp);\n" +
" } "; " } \n" +
"\t\tif(tmp == null){\n" +
" \t\t\ttmp = \"\";\n" +
"\t\t\tget(Fields.Out, filed).setValue(r, tmp);\n" +
"\t\t}";
private final static String code = "import org.pentaho.di.core.row.ValueMetaInterface;\n" + private final static String code = "import org.pentaho.di.core.row.ValueMetaInterface;\n" +
"import java.util.List;\n" + "import java.util.List;\n" +
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论