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