Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
YZG
yzg-util
Commits
804d74c3
Commit
804d74c3
authored
Jun 18, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩视频
parent
74e083d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
BaseDaoSql.java
...db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
+8
-0
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
View file @
804d74c3
...
@@ -24,6 +24,11 @@ import java.util.regex.Pattern;
...
@@ -24,6 +24,11 @@ import java.util.regex.Pattern;
*/
*/
public
abstract
class
BaseDaoSql
{
public
abstract
class
BaseDaoSql
{
/**
* SQL语句支持的最大长度
*/
public
static
int
MAX_SQL_LENGTH
=
1024
*
20
;
/**
/**
* 定义列表记录缓存对象
* 定义列表记录缓存对象
*/
*/
...
@@ -581,6 +586,9 @@ public abstract class BaseDaoSql {
...
@@ -581,6 +586,9 @@ public abstract class BaseDaoSql {
if
(!
m
.
find
())
{
if
(!
m
.
find
())
{
break
;
break
;
}
}
if
(
sql
.
length
()
>
MAX_SQL_LENGTH
)
{
throw
new
CodeException
(
"SQL语句过长,不能再次替换"
);
}
// 寻找到的代码片段 不包含分括号
// 寻找到的代码片段 不包含分括号
String
name
=
m
.
group
();
String
name
=
m
.
group
();
List
<
String
>
codes
=
codeMap
.
containsKey
(
name
)
?
codeMap
.
get
(
name
)
:
new
ArrayList
<>();
List
<
String
>
codes
=
codeMap
.
containsKey
(
name
)
?
codeMap
.
get
(
name
)
:
new
ArrayList
<>();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment