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
fb613a19
Commit
fb613a19
authored
Mar 04, 2021
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实体位置
parent
43d54978
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
BaseDaoImpl.java
...b/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
+1
-0
BaseDaoSql.java
...db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
+15
-15
No files found.
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoImpl.java
View file @
fb613a19
...
...
@@ -654,6 +654,7 @@ public abstract class BaseDaoImpl extends BaseDaoSql implements BaseDao {
* @param model
* @param <T>
*/
@Override
public
<
T
extends
Object
>
void
setGroupId
(
Class
<
T
>
cls
,
T
model
)
{
// 判断前台实体
if
(
model
==
null
)
{
...
...
yzg-util-db/src/main/java/com/yanzuoguang/dao/impl/BaseDaoSql.java
View file @
fb613a19
...
...
@@ -269,7 +269,7 @@ public abstract class BaseDaoSql {
* @param model 需要转化的实体
* @return 处理参数
*/
p
rotected
Object
queryCell
(
String
sqlName
,
Object
model
)
{
p
ublic
Object
queryCell
(
String
sqlName
,
Object
model
)
{
return
this
.
queryCell
(
this
.
getSql
(
sqlName
),
model
);
}
...
...
@@ -309,7 +309,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
List
<
MapRow
>
query
(
String
sqlName
,
Object
model
)
{
p
ublic
List
<
MapRow
>
query
(
String
sqlName
,
Object
model
)
{
return
this
.
query
(
MapRow
.
class
,
sqlName
,
model
);
}
...
...
@@ -322,7 +322,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
List
<
T
>
query
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
)
{
p
ublic
<
T
extends
Object
>
List
<
T
>
query
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
)
{
return
this
.
query
(
cls
,
sqlName
,
model
,
null
);
}
...
...
@@ -335,7 +335,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
List
<
T
>
query
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
p
ublic
<
T
extends
Object
>
List
<
T
>
query
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
SqlData
sqlData
=
this
.
getSql
(
sqlName
);
sqlData
=
getSqlQueryPara
(
sqlData
,
queryPara
,
true
);
...
...
@@ -352,7 +352,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
void
query
(
Class
<
T
>
cls
,
DbRow
<
T
>
handle
,
String
sqlName
,
Object
model
)
{
p
ublic
<
T
extends
Object
>
void
query
(
Class
<
T
>
cls
,
DbRow
<
T
>
handle
,
String
sqlName
,
Object
model
)
{
this
.
query
(
cls
,
handle
,
sqlName
,
model
,
null
);
}
...
...
@@ -365,7 +365,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
void
query
(
Class
<
T
>
cls
,
DbRow
<
T
>
handle
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
p
ublic
<
T
extends
Object
>
void
query
(
Class
<
T
>
cls
,
DbRow
<
T
>
handle
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
SqlData
sqlData
=
this
.
getSql
(
sqlName
);
// 获取查询参数处理后的SQL语句
sqlData
=
getSqlQueryPara
(
sqlData
,
queryPara
,
true
);
...
...
@@ -381,7 +381,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
MapRow
queryFirst
(
String
sqlName
,
Object
model
)
{
p
ublic
MapRow
queryFirst
(
String
sqlName
,
Object
model
)
{
return
this
.
queryFirst
(
MapRow
.
class
,
sqlName
,
model
);
}
...
...
@@ -394,7 +394,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
T
queryFirst
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
)
{
p
ublic
<
T
extends
Object
>
T
queryFirst
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
)
{
return
this
.
queryFirst
(
cls
,
sqlName
,
model
,
null
);
}
...
...
@@ -407,7 +407,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
T
queryFirst
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
p
ublic
<
T
extends
Object
>
T
queryFirst
(
Class
<
T
>
cls
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
PageSizeReq
pageSize
=
new
PageSizeReqVo
();
pageSize
.
setPageIndex
(
1
);
pageSize
.
setPageSize
(
1
);
...
...
@@ -424,7 +424,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
List
<
MapRow
>
queryPageData
(
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
p
ublic
List
<
MapRow
>
queryPageData
(
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
return
this
.
queryPageData
(
MapRow
.
class
,
pageSize
,
sqlName
,
model
);
}
...
...
@@ -439,7 +439,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
List
<
T
>
queryPageData
(
Class
<
T
>
cls
,
PageSizeReq
pageSize
,
String
sqlName
,
Object
model
)
{
p
ublic
<
T
extends
Object
>
List
<
T
>
queryPageData
(
Class
<
T
>
cls
,
PageSizeReq
pageSize
,
String
sqlName
,
Object
model
)
{
return
this
.
queryPageData
(
cls
,
pageSize
,
sqlName
,
model
,
null
);
}
...
...
@@ -453,7 +453,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
List
<
T
>
queryPageData
(
Class
<
T
>
cls
,
PageSizeReq
pageSize
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
p
ublic
<
T
extends
Object
>
List
<
T
>
queryPageData
(
Class
<
T
>
cls
,
PageSizeReq
pageSize
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
SqlData
from
=
this
.
getSql
(
sqlName
);
// 对SQL语句进行分页处理
SqlData
to
=
from
.
copy
();
...
...
@@ -473,7 +473,7 @@ public abstract class BaseDaoSql {
* @param model 前台参数
* @return 查询的结果
*/
p
rotected
PageSizeData
<
MapRow
>
queryPage
(
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
p
ublic
PageSizeData
<
MapRow
>
queryPage
(
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
return
this
.
queryPage
(
MapRow
.
class
,
pageSize
,
sqlName
,
model
);
}
...
...
@@ -487,7 +487,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
PageSizeData
<
T
>
queryPage
(
Class
<
T
>
cls
,
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
p
ublic
<
T
extends
Object
>
PageSizeData
<
T
>
queryPage
(
Class
<
T
>
cls
,
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
)
{
return
queryPage
(
cls
,
pageSize
,
sqlName
,
model
,
null
);
}
...
...
@@ -501,7 +501,7 @@ public abstract class BaseDaoSql {
* @param <T> 返回数据类型
* @return 查询的结果
*/
p
rotected
<
T
extends
Object
>
PageSizeData
<
T
>
queryPage
(
Class
<
T
>
cls
,
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
p
ublic
<
T
extends
Object
>
PageSizeData
<
T
>
queryPage
(
Class
<
T
>
cls
,
PageSizeReqVo
pageSize
,
String
sqlName
,
Object
model
,
QueryPara
queryPara
)
{
// 获取需要执行的SQL语句
SqlData
from
=
this
.
getSql
(
sqlName
);
...
...
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