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
25bbfa70
Commit
25bbfa70
authored
Aug 11, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf(amos-boot-module-jg): 优化使用登记单据列表查询性能
- 在列表查询和总数查询前添加日志记录开始信息 - 在列表查询和总数查询后添加日志记录耗时信息
parent
07a487b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-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 @
25bbfa70
...
...
@@ -355,11 +355,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
SortVo
sortMap
=
commonServiceImpl
.
sortFieldConversionNoToUnderline
(
sort
);
// 统计查询时间
long
startTime
=
System
.
currentTimeMillis
();
logger
.
info
(
"使用登记单据-列表查询"
);
List
<
Map
<
String
,
Object
>>
resultRecords
=
this
.
baseMapper
.
getListPage1
(
page
.
getSize
(),
page
.
getSize
()
*
(
page
.
getCurrent
()
-
1
),
sortMap
,
dto
,
roleIds
,
client
);
logger
.
info
(
"使用登记单据-列表查询耗时:{}毫秒"
,
(
System
.
currentTimeMillis
()
-
startTime
));
page
.
setRecords
(
resultRecords
);
logger
.
info
(
"开始执行查询列表总数"
);
logger
.
info
(
"使用登记单据-列表总数查询"
);
startTime
=
System
.
currentTimeMillis
();
page
.
setTotal
(
this
.
baseMapper
.
getListPageCount
(
sortMap
,
dto
,
roleIds
,
client
));
logger
.
info
(
"
结束执行查询列表总数,
耗时:{}毫秒"
,
(
System
.
currentTimeMillis
()
-
startTime
));
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