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
3eaf2dd2
Commit
3eaf2dd2
authored
Sep 04, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
9c6c8a57
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
DaoConst.java
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
+1
-1
TableStruct.java
...b/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
+1
-1
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/DaoConst.java
View file @
3eaf2dd2
...
@@ -134,7 +134,7 @@ public class DaoConst {
...
@@ -134,7 +134,7 @@ public class DaoConst {
/**
/**
* 等于条件参数
* 等于条件参数
*/
*/
public
static
final
String
CODE_WHERE_EQUALS_NOT_EMPTY_PARA
=
"AND a.%s=? AND
a.%s>''
"
;
public
static
final
String
CODE_WHERE_EQUALS_NOT_EMPTY_PARA
=
"AND a.%s=? AND
?>''
"
;
/**
/**
* 未删除条件
* 未删除条件
*/
*/
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/TableStruct.java
View file @
3eaf2dd2
...
@@ -668,7 +668,7 @@ public class TableStruct {
...
@@ -668,7 +668,7 @@ public class TableStruct {
for
(
String
fieldName
:
fields
)
{
for
(
String
fieldName
:
fields
)
{
TableFieldVo
field
=
this
.
getField
(
fieldName
);
TableFieldVo
field
=
this
.
getField
(
fieldName
);
sql
.
addConst
(
field
.
inputName
,
sql
.
addConst
(
field
.
inputName
,
String
.
format
(
DaoConst
.
CODE_WHERE_EQUALS_NOT_EMPTY_PARA
,
field
.
name
,
field
.
name
)
String
.
format
(
DaoConst
.
CODE_WHERE_EQUALS_NOT_EMPTY_PARA
,
field
.
name
)
);
);
}
}
addWhereRemove
(
sql
);
addWhereRemove
(
sql
);
...
...
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