Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
9dd26bd2
Commit
9dd26bd2
authored
Sep 11, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(amos-boot-module-jg): 修复使用登记列表查询
- 通过在方法开始时计算总记录数,确保分页查询的正确性
parent
41f3ac0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+3
-2
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
View file @
9dd26bd2
...
...
@@ -359,13 +359,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversionNoToUnderline
(
sort
);
// 统计查询时间
long
startTime
=
System
.
currentTimeMillis
();
long
total
=
this
.
baseMapper
.
getListPageCount
(
sortMap
,
dto
,
roleIds
,
client
);
logger
.
info
(
"使用登记单据-列表查询"
);
List
<
Map
<
String
,
Object
>>
resultRecords
=
this
.
baseMapper
.
getListPage1
(
page
.
getSize
(),
page
.
getSize
()
*
(
page
.
getCurrent
()
-
1
),
sortMap
,
dto
,
roleIds
,
client
);
List
<
Map
<
String
,
Object
>>
resultRecords
=
this
.
baseMapper
.
getListPage1
(
page
.
getSize
(),
Long
.
min
(
page
.
getSize
()
*
(
page
.
getCurrent
()
-
1
),
total
),
sortMap
,
dto
,
roleIds
,
client
);
logger
.
info
(
"使用登记单据-列表查询耗时:{}毫秒"
,
(
System
.
currentTimeMillis
()
-
startTime
));
page
.
setRecords
(
resultRecords
);
logger
.
info
(
"使用登记单据-列表总数查询"
);
startTime
=
System
.
currentTimeMillis
();
page
.
setTotal
(
t
his
.
baseMapper
.
getListPageCount
(
sortMap
,
dto
,
roleIds
,
client
)
);
page
.
setTotal
(
t
otal
);
logger
.
info
(
"使用登记单据-列表总数查询耗时:{}毫秒"
,
(
System
.
currentTimeMillis
()
-
startTime
));
return
page
;
}
...
...
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