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
1e0cc4f5
Commit
1e0cc4f5
authored
May 19, 2022
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将源码打包进jar包
parent
63f84068
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
TestDbPrintSql.java
yzg-util-db/src/test/java/TestDbPrintSql.java
+4
-3
No files found.
yzg-util-db/src/test/java/TestDbPrintSql.java
View file @
1e0cc4f5
...
...
@@ -2,6 +2,7 @@ import com.yanzuoguang.dao.DaoConst;
import
com.yanzuoguang.dao.impl.SqlData
;
import
com.yanzuoguang.dao.impl.TableSqlCache
;
import
com.yanzuoguang.dao.impl.TableStruct
;
import
com.yanzuoguang.db.ConfigDb
;
import
com.yanzuoguang.db.impl.DbPrintSql
;
import
com.yanzuoguang.util.helper.JsonHelper
;
import
org.junit.Test
;
...
...
@@ -12,7 +13,7 @@ import java.util.List;
public
class
TestDbPrintSql
{
@Test
public
void
test
()
{
DbPrintSql
printSql
=
new
DbPrintSql
();
DbPrintSql
printSql
=
new
DbPrintSql
(
new
ConfigDb
()
);
String
stringSql
=
printSql
.
getStringSql
(
"select * from where id = ? AND name = ? and removeFlag = 0 "
,
"1"
);
System
.
out
.
println
(
stringSql
);
}
...
...
@@ -27,6 +28,7 @@ public class TestDbPrintSql {
SqlData
sqlData
=
cache
.
getNameCache
().
get
(
DaoConst
.
GROUP_ADD
);
System
.
out
.
println
(
JsonHelper
.
serialize
(
sqlData
,
true
));
}
@Test
public
void
testTableStruct1
()
{
TableSqlCache
cache
=
new
TableSqlCache
();
...
...
@@ -49,7 +51,6 @@ public class TestDbPrintSql {
}
@Test
public
void
testTableStructSort
()
{
TableSqlCache
cache
=
new
TableSqlCache
();
...
...
@@ -63,7 +64,7 @@ public class TestDbPrintSql {
list
.
add
(
new
TestTableGroupVo
(
"3"
));
List
listTo
=
cache
.
getKeySort
(
list
);
String
json
=
JsonHelper
.
serialize
(
listTo
,
true
);
String
json
=
JsonHelper
.
serialize
(
listTo
,
true
);
System
.
out
.
println
(
json
);
}
...
...
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