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
ed48f327
Commit
ed48f327
authored
Jun 05, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩视频
parent
86e0d98f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
SqlData.java
...il-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
+9
-1
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/SqlData.java
View file @
ed48f327
...
@@ -7,6 +7,7 @@ import java.util.List;
...
@@ -7,6 +7,7 @@ import java.util.List;
/**
/**
* SQL语句基本信息
* SQL语句基本信息
*
* @author 颜佐光
* @author 颜佐光
*/
*/
public
class
SqlData
{
public
class
SqlData
{
...
@@ -55,6 +56,7 @@ public class SqlData {
...
@@ -55,6 +56,7 @@ public class SqlData {
/**
/**
* Sql语句类型
* Sql语句类型
*
* @return Sql语句类型
* @return Sql语句类型
*/
*/
public
int
getSqlType
()
{
public
int
getSqlType
()
{
...
@@ -63,6 +65,7 @@ public class SqlData {
...
@@ -63,6 +65,7 @@ public class SqlData {
/**
/**
* Sql语句类型
* Sql语句类型
*
* @param sqlType Sql语句类型
* @param sqlType Sql语句类型
*/
*/
public
SqlData
setSqlType
(
int
sqlType
)
{
public
SqlData
setSqlType
(
int
sqlType
)
{
...
@@ -88,6 +91,7 @@ public class SqlData {
...
@@ -88,6 +91,7 @@ public class SqlData {
/**
/**
* 获取SQL语句
* 获取SQL语句
*
* @return
* @return
*/
*/
public
String
getSql
()
{
public
String
getSql
()
{
...
@@ -96,6 +100,7 @@ public class SqlData {
...
@@ -96,6 +100,7 @@ public class SqlData {
/**
/**
* 设置SQL语句
* 设置SQL语句
*
* @param sql
* @param sql
* @return
* @return
*/
*/
...
@@ -106,6 +111,7 @@ public class SqlData {
...
@@ -106,6 +111,7 @@ public class SqlData {
/**
/**
* 获取SQL语句字段
* 获取SQL语句字段
*
* @return
* @return
*/
*/
public
List
<
SqlDataField
>
getSqlDataFields
()
{
public
List
<
SqlDataField
>
getSqlDataFields
()
{
...
@@ -114,6 +120,7 @@ public class SqlData {
...
@@ -114,6 +120,7 @@ public class SqlData {
/**
/**
* 设置SQL语句字段
* 设置SQL语句字段
*
* @param sqlDataFields
* @param sqlDataFields
* @return
* @return
*/
*/
...
@@ -132,7 +139,8 @@ public class SqlData {
...
@@ -132,7 +139,8 @@ public class SqlData {
public
SqlDataField
getField
(
String
fieldName
)
{
public
SqlDataField
getField
(
String
fieldName
)
{
String
to
=
fieldName
.
toLowerCase
().
replaceAll
(
"_"
,
""
);
String
to
=
fieldName
.
toLowerCase
().
replaceAll
(
"_"
,
""
);
for
(
SqlDataField
sqlDataField
:
this
.
sqlDataFields
)
{
for
(
SqlDataField
sqlDataField
:
this
.
sqlDataFields
)
{
if
(
to
.
equals
(
sqlDataField
.
paraName
.
toLowerCase
()))
{
String
from
=
sqlDataField
.
paraName
.
toLowerCase
().
replaceAll
(
"_"
,
""
);
if
(
to
.
equals
(
from
))
{
return
sqlDataField
;
return
sqlDataField
;
}
}
}
}
...
...
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