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
b784732d
Commit
b784732d
authored
Aug 17, 2023
by
吴佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbReadset 分页查询总条数调整
parent
1e6c5534
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
MyBatisDaoSession.java
...com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
+4
-2
BaseVO.java
.../main/java/com/brilliance/mda/runtime/request/BaseVO.java
+1
-1
No files found.
gjjs-bd-mybatis-support/src/main/java/com/brilliance/mda/support/mybatis/MyBatisDaoSession.java
View file @
b784732d
...
...
@@ -14,6 +14,7 @@ import com.brilliance.mda.support.mybatis.config.MybatisDbUtil;
import
com.brilliance.mda.support.mybatis.count.CounterService
;
import
com.brilliance.mda.support.mybatis.dync.mapper.DbExecuteMapper
;
import
com.github.pagehelper.PageHelper
;
import
com.github.pagehelper.PageInfo
;
import
jdk.nashorn.internal.ir.annotations.Ignore
;
import
net.sf.jsqlparser.JSQLParserException
;
import
net.sf.jsqlparser.parser.CCJSqlParserUtil
;
...
...
@@ -268,7 +269,9 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
//调用commonMapper中的dyncRead
List
<
HashMap
<
String
,
Object
>>
result
=
sqlSessionTemplate
.
selectList
(
"com.brilliance.mda.support.mybatis.count.mapper.CommonMapper.dyncRead"
,
adapter
.
getSqlParams
());
PageInfo
<
HashMap
<
String
,
Object
>>
pageInfo
=
new
PageInfo
<
HashMap
<
String
,
Object
>>(
result
);
long
total
=
pageInfo
.
getTotal
();
baseVO
.
setTotal
(
total
);
if
(
result
!=
null
&&
result
.
size
()>
0
){
String
fieldName
=
""
;
String
methodName
=
""
;
...
...
@@ -356,7 +359,6 @@ public class MyBatisDaoSession extends AbstractDaoSession implements IDaoSession
if
(
cacheOption
!=
null
)
{
PageHelper
.
clearPage
();
}
baseVO
.
setTotal
(
lists
[
0
].
size
());
return
lists
[
0
].
size
();
}
...
...
gjjs-bd-runtime/src/main/java/com/brilliance/mda/runtime/request/BaseVO.java
View file @
b784732d
...
...
@@ -12,7 +12,7 @@ public class BaseVO {
protected
String
id
;
protected
String
cifno
;
protected
String
pageId
;
public
int
total
;
public
long
total
;
protected
Map
<
String
,
Object
>
params
;
protected
Map
<
String
,
Object
>
root
;
...
...
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