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
5ed38c24
Commit
5ed38c24
authored
Sep 05, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改MQ请求尸体,防止出错
parent
07605d8a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+2
-2
SqlData.java
...il-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
+2
-2
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
5ed38c24
...
@@ -99,7 +99,7 @@ public class DaoConst {
...
@@ -99,7 +99,7 @@ public class DaoConst {
* 加载SQL语句模板
* 加载SQL语句模板
*/
*/
public
static
final
String
SQL_LOAD
=
"{SELECT_OUTER_BEGIN}SELECT {FIELD} FROM {TABLE} AS a {INNER} WHERE 1=1"
+
public
static
final
String
SQL_LOAD
=
"{SELECT_OUTER_BEGIN}SELECT {FIELD} FROM {TABLE} AS a {INNER} WHERE 1=1"
+
"{WHERE}{GROUP}{HAVING}{ORDER}{LIMIT}{SELECT_OUTER_END}{
LIMIT_END
}"
;
"{WHERE}{GROUP}{HAVING}{ORDER}{LIMIT}{SELECT_OUTER_END}{
WHERE_OUTER}{GROUP_OUTER}{HAVING_OUTER}{ORDER_OUTER}{LIMIT_OUTER
}"
;
/**
/**
* 表名代码片段
* 表名代码片段
*/
*/
...
@@ -131,7 +131,7 @@ public class DaoConst {
...
@@ -131,7 +131,7 @@ public class DaoConst {
/**
/**
* WHERE条件代码片段
* WHERE条件代码片段
*/
*/
public
static
final
String
CODE_LIMIT_
END
=
"{LIMIT_END
}"
;
public
static
final
String
CODE_LIMIT_
OUTER
=
"{LIMIT_OUTER
}"
;
/**
/**
* 更新字段模板
* 更新字段模板
*/
*/
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
View file @
5ed38c24
...
@@ -92,8 +92,8 @@ public class SqlData {
...
@@ -92,8 +92,8 @@ public class SqlData {
@Override
@Override
public
void
addPos
(
StringBuilder
sb
,
String
group
,
String
fieldFull
,
String
field
,
String
command
)
{
public
void
addPos
(
StringBuilder
sb
,
String
group
,
String
fieldFull
,
String
field
,
String
command
)
{
if
(
StringHelper
.
compare
(
group
,
DaoConst
.
CODE_LIMIT
))
{
if
(
StringHelper
.
compare
(
group
,
DaoConst
.
CODE_LIMIT
))
{
sb
.
append
(
DaoConst
.
CODE_LIMIT_
END
);
sb
.
append
(
DaoConst
.
CODE_LIMIT_
OUTER
);
}
else
if
(
StringHelper
.
compare
(
group
,
DaoConst
.
CODE_LIMIT_
END
))
{
}
else
if
(
StringHelper
.
compare
(
group
,
DaoConst
.
CODE_LIMIT_
OUTER
))
{
sb
.
append
(
DaoConst
.
CODE_LIMIT
);
sb
.
append
(
DaoConst
.
CODE_LIMIT
);
}
else
{
}
else
{
sb
.
append
(
group
);
sb
.
append
(
group
);
...
...
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