Commit 804d74c3 authored by yanzg's avatar yanzg

压缩视频

parent 74e083d5
......@@ -24,6 +24,11 @@ import java.util.regex.Pattern;
*/
public abstract class BaseDaoSql {
/**
* SQL语句支持的最大长度
*/
public static int MAX_SQL_LENGTH = 1024 * 20;
/**
* 定义列表记录缓存对象
*/
......@@ -581,6 +586,9 @@ public abstract class BaseDaoSql {
if (!m.find()) {
break;
}
if (sql.length() > MAX_SQL_LENGTH) {
throw new CodeException("SQL语句过长,不能再次替换");
}
// 寻找到的代码片段 不包含分括号
String name = m.group();
List<String> codes = codeMap.containsKey(name) ? codeMap.get(name) : new ArrayList<>();
......
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