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
a3cb1874
Commit
a3cb1874
authored
Jun 14, 2020
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压缩视频
parent
4a6e4914
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
4 deletions
+18
-4
InitDaoQuery.java
...e/src/main/java/com/yanzuoguang/util/vo/InitDaoQuery.java
+13
-0
BaseDaoSql.java
...db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
+5
-4
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/InitDaoQuery.java
0 → 100755
View file @
a3cb1874
package
com
.
yanzuoguang
.
util
.
vo
;
/**
* 初始化查询条件数据
*
* @author 颜佐光
*/
public
interface
InitDaoQuery
{
/**
* 初始化数据,去掉空值
*/
void
initCond
();
}
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
View file @
a3cb1874
...
...
@@ -10,10 +10,7 @@ import com.yanzuoguang.util.cache.MemoryCache;
import
com.yanzuoguang.util.exception.CodeException
;
import
com.yanzuoguang.util.helper.ArrayHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.vo.MapRow
;
import
com.yanzuoguang.util.vo.PageSizeData
;
import
com.yanzuoguang.util.vo.PageSizeReq
;
import
com.yanzuoguang.util.vo.PageSizeReqVo
;
import
com.yanzuoguang.util.vo.*
;
import
javax.annotation.Resource
;
import
java.util.*
;
...
...
@@ -554,6 +551,10 @@ public abstract class BaseDaoSql {
// 处理字段以及代码片段
String
sql
=
sb
.
toString
();
// 对查询条件进行初始化
if
(
model
instanceof
InitDaoQuery
)
{
((
InitDaoQuery
)
model
).
initCond
();
}
sql
=
handleCodeRelease
(
sql
,
sqlData
,
model
,
codeMap
);
sql
=
handleCodeReplace
(
sql
,
codeMap
);
...
...
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