Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gjjs-bd-common
Overview
Overview
Details
Activity
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
s_guodong
gjjs-bd-common
Commits
b19bb116
Commit
b19bb116
authored
Aug 22, 2023
by
吴佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbReadset 单表查询 分页总条数调整
parent
d2e08146
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
MyBatisDaoSession.java
...com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
+6
-4
No files found.
gjjs-bd-mybatis-support/src/main/java/com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
View file @
b19bb116
...
...
@@ -354,9 +354,7 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
for
(
IModuleList
iModule
:
lists
)
{
List
<
T
>
result
=
this
.
dyncRead
(
iModule
.
getDataClass
(),
adapter
);
iModule
.
addAll
(
result
);
PageInfo
<
T
>
pageInfo
=
new
PageInfo
<
T
>(
result
);
long
total
=
pageInfo
.
getTotal
();
baseVO
.
setTotal
(
total
);
}
}
if
(
cacheOption
!=
null
)
{
...
...
@@ -583,9 +581,13 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
}
private
<
T
>
List
<
T
>
dyncRead
(
Class
<
T
>
clazz
,
MybatisArgumentAdapter
adapter
)
{
IContext
ctx
=
MdaEnv
.
getContext
();
BaseVO
baseVO
=
ctx
.
getVo
();
String
sqlId
=
getSqlId
(
clazz
,
SQLID_DYNCREAD
);
List
<
T
>
list
=
sqlSessionTemplate
.
selectList
(
sqlId
,
adapter
.
getSqlParams
());
PageInfo
<
T
>
pageInfo
=
new
PageInfo
<
T
>(
list
);
long
total
=
pageInfo
.
getTotal
();
baseVO
.
setTotal
(
total
);
if
(
list
==
null
||
list
.
size
()
==
0
)
{
setNoMoreRow
();
}
...
...
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