Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-riskmanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e0750798
authored
Dec 08, 2025
by
崔彦峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
modify:修改等级考试列表限制导出条数逻辑、修改员工考试结果分页列表导出条数逻辑。
1 parent
bbb59f40
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
src/main/java/cn/com/glsx/dj/riskmanage/controller/learningcenter/LevelExamController.java
src/main/java/cn/com/glsx/dj/riskmanage/controller/learningcenter/LevelExamController.java
View file @
e075079
...
@@ -214,10 +214,11 @@ public class LevelExamController {
...
@@ -214,10 +214,11 @@ public class LevelExamController {
public
RopResponse
<
String
>
levelExamExportAsync
(
LevelExamPageListRequest
request
)
{
public
RopResponse
<
String
>
levelExamExportAsync
(
LevelExamPageListRequest
request
)
{
try
{
try
{
RpcPagination
<
LevelExamPageListRequestDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
LevelExamPageListRequestDTO
.
class
);
RpcPagination
<
LevelExamPageListRequestDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
LevelExamPageListRequestDTO
.
class
);
pagination
.
setPageSize
(
Integer
.
parseInt
(
env
.
getProperty
(
"export_limit_num"
,
"10001"
)));
int
exportLimitNum
=
Integer
.
parseInt
(
env
.
getProperty
(
"export_limit_num"
,
"10000"
));
pagination
.
setPageSize
(
exportLimitNum
+
1
);
RpcResponse
<
RpcPagination
<
LevelExamPageListResponseDTO
>>
page
=
levelExamRemote
.
levelExamListPage
(
pagination
);
RpcResponse
<
RpcPagination
<
LevelExamPageListResponseDTO
>>
page
=
levelExamRemote
.
levelExamListPage
(
pagination
);
if
(
page
.
getResult
().
getTotal
()
>
10000
)
{
if
(
page
.
getResult
().
getTotal
()
>
exportLimitNum
)
{
return
RopResponse
.
error
(
"导出数据超过
10000
行无法导出"
);
return
RopResponse
.
error
(
"导出数据超过
"
+
exportLimitNum
+
"
行无法导出"
);
}
}
AtomicInteger
idx
=
new
AtomicInteger
(
1
);
AtomicInteger
idx
=
new
AtomicInteger
(
1
);
List
<
LevelExamExportVO
>
exportVOList
=
page
.
getResult
().
getList
().
stream
().
map
(
p
->
{
List
<
LevelExamExportVO
>
exportVOList
=
page
.
getResult
().
getList
().
stream
().
map
(
p
->
{
...
@@ -240,10 +241,11 @@ public class LevelExamController {
...
@@ -240,10 +241,11 @@ public class LevelExamController {
public
RopResponse
<
String
>
levelExamPersonDataExportAsync
(
LevelExamPersonPageRequest
request
)
{
public
RopResponse
<
String
>
levelExamPersonDataExportAsync
(
LevelExamPersonPageRequest
request
)
{
try
{
try
{
RpcPagination
<
LevelExamPersonDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
LevelExamPersonDTO
.
class
);
RpcPagination
<
LevelExamPersonDTO
>
pagination
=
CommonUtil
.
getRpcPagination
(
LevelExamPersonDTO
.
class
);
pagination
.
setPageSize
(
Integer
.
parseInt
(
env
.
getProperty
(
"export_limit_num"
,
"10001"
)));
int
exportLimitNum
=
Integer
.
parseInt
(
env
.
getProperty
(
"export_limit_num"
,
"10000"
));
pagination
.
setPageSize
(
exportLimitNum
+
1
);
RpcResponse
<
RpcPagination
<
LevelExamPersonDTO
>>
page
=
levelExamRemote
.
levelExamDataPersonPage
(
pagination
);
RpcResponse
<
RpcPagination
<
LevelExamPersonDTO
>>
page
=
levelExamRemote
.
levelExamDataPersonPage
(
pagination
);
if
(
page
.
getResult
().
getTotal
()
>
10000
)
{
if
(
page
.
getResult
().
getTotal
()
>
exportLimitNum
)
{
return
RopResponse
.
error
(
"导出数据超过
10000
行无法导出"
);
return
RopResponse
.
error
(
"导出数据超过
"
+
exportLimitNum
+
"
行无法导出"
);
}
}
AtomicInteger
idx
=
new
AtomicInteger
(
1
);
AtomicInteger
idx
=
new
AtomicInteger
(
1
);
List
<
LevelExamPersonDataExportVO
>
exportVOList
=
page
.
getResult
().
getList
().
stream
().
map
(
p
->
{
List
<
LevelExamPersonDataExportVO
>
exportVOList
=
page
.
getResult
().
getList
().
stream
().
map
(
p
->
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment