Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
09500c12
Commit
09500c12
authored
Feb 08, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款导出支持筛选导出
parent
0de87884
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
4 deletions
+18
-4
RepaymentBatchDto.java
...join/amos/boot/module/hygf/api/dto/RepaymentBatchDto.java
+6
-0
RepaymentController.java
.../boot/module/hygf/biz/controller/RepaymentController.java
+1
-1
RepaymentServiceImpl.java
...ot/module/hygf/biz/service/impl/RepaymentServiceImpl.java
+11
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/RepaymentBatchDto.java
View file @
09500c12
...
...
@@ -7,4 +7,10 @@ import java.util.List;
@Data
public
class
RepaymentBatchDto
{
private
List
<
String
>
sequenceNbrList
;
private
String
companyName
;
private
String
loanPeriod
;
private
String
messageState
;
private
String
period
;
private
String
repayDate
;
private
String
repayState
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/RepaymentController.java
View file @
09500c12
...
...
@@ -162,7 +162,7 @@ public class RepaymentController extends BaseController {
@PostMapping
(
value
=
"/exportRepaymentExcel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"导出还款Excel"
,
notes
=
"导出还款Excel"
)
public
ResponseModel
<?>
exportRepaymentExcel
(
@RequestBody
RepaymentBatchDto
repaymentBatchDto
,
HttpServletResponse
response
)
{
repaymentService
.
exportRepaymentExcel
(
repaymentBatchDto
.
getSequenceNbrList
()
,
response
);
repaymentService
.
exportRepaymentExcel
(
repaymentBatchDto
,
response
);
return
ResponseHelper
.
buildResponse
(
null
);
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/RepaymentServiceImpl.java
View file @
09500c12
...
...
@@ -26,6 +26,7 @@ import com.yeejoin.amos.boot.module.hygf.biz.vo.RepaymentExcelVO;
import
com.yeejoin.amos.boot.module.hygf.biz.vo.RouthPathVO
;
import
com.yeejoin.amos.feign.systemctl.Systemctl
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.scheduling.annotation.Async
;
...
...
@@ -356,12 +357,19 @@ public class RepaymentServiceImpl extends BaseService<RepaymentDto, Repayment, R
}
}
public
void
exportRepaymentExcel
(
List
<
String
>
sequenceNbrList
,
HttpServletResponse
response
)
{
public
void
exportRepaymentExcel
(
RepaymentBatchDto
repaymentBatchDto
,
HttpServletResponse
response
)
{
LambdaQueryWrapper
<
Repayment
>
wrapper
=
new
LambdaQueryWrapper
<>();
//如果是空值导出全部
List
<
Repayment
>
repaymentList
;
if
(
CollectionUtil
.
isNotEmpty
(
sequenceNbrList
))
{
wrapper
.
in
(
Repayment:
:
getSequenceNbr
,
sequenceNbrList
);
if
(
Objects
.
nonNull
(
repaymentBatchDto
))
{
wrapper
.
in
(
CollectionUtil
.
isNotEmpty
(
repaymentBatchDto
.
getSequenceNbrList
()),
Repayment:
:
getSequenceNbr
,
repaymentBatchDto
.
getSequenceNbrList
());
wrapper
.
eq
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getCompanyName
()),
Repayment:
:
getCompanyName
,
repaymentBatchDto
.
getCompanyName
());
wrapper
.
eq
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getRepayState
()),
Repayment:
:
getRepayState
,
repaymentBatchDto
.
getRepayState
());
wrapper
.
like
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getPeriod
()),
Repayment:
:
getPeriod
,
repaymentBatchDto
.
getPeriod
());
wrapper
.
like
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getLoanPeriod
()),
Repayment:
:
getLoanPeriod
,
repaymentBatchDto
.
getLoanPeriod
());
wrapper
.
eq
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getMessageState
()),
Repayment:
:
getMessageState
,
repaymentBatchDto
.
getMessageState
());
wrapper
.
eq
(
StringUtils
.
isNotEmpty
(
repaymentBatchDto
.
getRepayDate
()),
Repayment:
:
getRepayDate
,
repaymentBatchDto
.
getRepayDate
());
repaymentList
=
list
(
wrapper
);
}
else
{
repaymentList
=
baseMapper
.
getAllData
();
...
...
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