Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
d5176183
Commit
d5176183
authored
May 16, 2025
by
huyuchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
huych-导出优化
parent
744c7ef1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
TSalaryAccountServiceImpl.java
...1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
+2
-2
TForecastLibraryController.java
...v1/yifu/social/controller/TForecastLibraryController.java
+8
-0
TIncomeController.java
...oud/plus/v1/yifu/social/controller/TIncomeController.java
+8
-0
No files found.
yifu-salary/yifu-salary-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/salary/service/impl/TSalaryAccountServiceImpl.java
View file @
d5176183
...
...
@@ -295,7 +295,7 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
if
(
count
>
CommonConstants
.
ZERO_INT
)
{
int
batchSize
=
CommonConstants
.
EXCEL_EXPORT_LIMIT_1
;
int
totalPages
=
(
int
)
Math
.
ceil
((
double
)
count
/
batchSize
);
List
<
SalaryAccountExportVo
>
batchList
;
for
(
int
page
=
1
;
page
<=
totalPages
;
page
++)
{
// 每10万条数据切换一个新sheet,防止单个sheet过大
if
((
page
-
1
)
*
batchSize
%
100000
==
0
&&
(
page
-
1
)
*
batchSize
>
0
)
{
...
...
@@ -307,7 +307,7 @@ public class TSalaryAccountServiceImpl extends ServiceImpl<TSalaryAccountMapper,
searchVo
.
setLimitStart
((
page
-
1
)
*
batchSize
);
searchVo
.
setLimitEnd
(
batchSize
);
List
<
SalaryAccountExportVo
>
batchList
=
baseMapper
.
noPageDiyLastNew
(
searchVo
,
searchVo
.
getIdList
(),
deptNos
);
batchList
=
baseMapper
.
noPageDiyLastNew
(
searchVo
,
searchVo
.
getIdList
(),
deptNos
);
if
(
Common
.
isNotNull
(
batchList
))
{
excelWriter
.
write
(
batchList
,
writeSheet
);
// 及时清空批次数据
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TForecastLibraryController.java
View file @
d5176183
...
...
@@ -68,6 +68,10 @@ public class TForecastLibraryController {
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
TForecastLibrary
>>
getTForecastLibraryPage
(
Page
<
TForecastLibrary
>
page
,
TForecastLibrary
tForecastLibrary
)
{
//Ekp1.9.11查询条件 社保生成月和公积金生成月必填其一
if
(
Common
.
isEmpty
(
tForecastLibrary
.
getSocialCreateMonth
())
&&
Common
.
isEmpty
(
tForecastLibrary
.
getProvidentCreateMonth
()))
{
return
null
;
}
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
tForecastLibrary
);
if
(
Common
.
isNotNull
(
tForecastLibrary
.
getAuthSql
())
&&
tForecastLibrary
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
...
...
@@ -140,6 +144,10 @@ public class TForecastLibraryController {
@PostMapping
(
"/export"
)
@PreAuthorize
(
"@pms.hasPermission('social_tforecastlibrary-export')"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TForecastLibrary
searchVo
)
{
//Ekp1.9.11查询条件 社保生成月和公积金生成月必填其一
if
(
Common
.
isEmpty
(
searchVo
.
getSocialCreateMonth
())
&&
Common
.
isEmpty
(
searchVo
.
getProvidentCreateMonth
()))
{
return
;
}
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
if
(
Common
.
isNotNull
(
searchVo
.
getAuthSql
())
&&
searchVo
.
getAuthSql
().
contains
(
CommonConstants
.
A_DEPT_ID
))
{
...
...
yifu-social/yifu-social-biz/src/main/java/com/yifu/cloud/plus/v1/yifu/social/controller/TIncomeController.java
View file @
d5176183
...
...
@@ -70,6 +70,10 @@ public class TIncomeController {
@Operation
(
description
=
"简单分页查询"
)
@GetMapping
(
"/page"
)
public
R
<
IPage
<
TIncome
>>
getTIncomePage
(
Page
<
TIncome
>
page
,
TIncomeSearchVo
tIncome
)
{
//Ekp1.9.11查询条件 数据生成时间必填
if
(
Common
.
isEmpty
(
tIncome
.
getDataCreateMonth
()))
{
return
null
;
}
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
tIncome
);
return
new
R
<>(
tIncomeService
.
getTIncomePage
(
page
,
tIncome
));
...
...
@@ -155,6 +159,10 @@ public class TIncomeController {
@PostMapping
(
"/export"
)
@PreAuthorize
(
"@pms.hasPermission('social_tincome-export')"
)
public
void
export
(
HttpServletResponse
response
,
@RequestBody
TIncomeSearchVo
searchVo
)
{
//Ekp1.9.11查询条件 数据生成时间必填
if
(
Common
.
isEmpty
(
searchVo
.
getDataCreateMonth
()))
{
return
;
}
YifuUser
user
=
SecurityUtils
.
getUser
();
menuUtil
.
setAuthSql
(
user
,
searchVo
);
tIncomeService
.
listExport
(
response
,
searchVo
);
...
...
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