Commit 40ce24ad authored by yanzg's avatar yanzg

Excel导出功能

parent 59d40961
...@@ -20,6 +20,7 @@ import java.util.regex.Pattern; ...@@ -20,6 +20,7 @@ import java.util.regex.Pattern;
/** /**
* SQL语句基本操作类 * SQL语句基本操作类
*
* @author 颜佐光 * @author 颜佐光
*/ */
public abstract class BaseDaoSql { public abstract class BaseDaoSql {
...@@ -484,11 +485,13 @@ public abstract class BaseDaoSql { ...@@ -484,11 +485,13 @@ public abstract class BaseDaoSql {
while (m.find()) { while (m.find()) {
String name = m.group(); String name = m.group();
List<String> codes = codeMap.containsKey(name) ? codeMap.get(name) : new ArrayList<String>(); List<String> codes = codeMap.containsKey(name) ? codeMap.get(name) : new ArrayList<String>();
String code = String.join("", codes); String code = String.format(" %s ", String.join(" ", codes));
sql = sql.replace(name, code); sql = sql.replace(name, code);
} }
} }
sql = sql.replaceAll("\\s+", "\\s");
return sql; return sql;
} }
......
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