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
32d536ba
Commit
32d536ba
authored
Feb 08, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
还款导出支持筛选导出
parent
10afc91e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
15 deletions
+30
-15
RepaymentMapper.java
...oin/amos/boot/module/hygf/api/mapper/RepaymentMapper.java
+2
-1
RepaymentMapper.xml
...f-api/src/main/resources/mapper/mysql/RepaymentMapper.xml
+26
-0
RepaymentServiceImpl.java
...ot/module/hygf/biz/service/impl/RepaymentServiceImpl.java
+2
-14
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/RepaymentMapper.java
View file @
32d536ba
...
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.api.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.RepaymentBatchDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.RepaymentDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PrivilegeCompany
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.Repayment
;
...
...
@@ -31,5 +32,5 @@ public interface RepaymentMapper extends BaseMapper<Repayment> {
List
<
String
>
getTodoTelephones
(
@Param
(
"userIds"
)
List
<
String
>
userIds
);
@UserEmpower
(
field
=
{
"regional_companies_code"
},
dealerField
=
{
"regional_companies_code"
},
fieldConditions
=
{
"in"
},
relationship
=
"and"
)
List
<
Repayment
>
getAllData
();
List
<
Repayment
>
getAllData
(
@Param
(
"dto"
)
RepaymentBatchDto
repaymentBatchDto
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/RepaymentMapper.xml
View file @
32d536ba
...
...
@@ -49,6 +49,32 @@
<select
id=
"getAllData"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.entity.Repayment"
>
select * from hygf_repayment
<where>
<if
test=
"dto.companyName != null and dto.companyName != '' "
>
and company_name = #{dto.companyName}
</if>
<if
test=
"dto.loanPeriod != null and dto.loanPeriod != ''"
>
and loan_period like concat('%',#{dto.loanPeriod},'%')
</if>
<if
test=
"dto.messageState != null and dto.messageState != '' "
>
and message_state = #{dto.messageState}
</if>
<if
test=
"dto.period != null and dto.period != ''"
>
and period like concat('%',#{dto.period},'%')
</if>
<if
test=
"dto.repayDate != null and dto.repayDate != ''"
>
and repay_date = #{dto.repayDate}
</if>
<if
test=
"dto.repayState != null and dto.repayState != ''"
>
and repay_state= #{repayState}
</if>
<if
test=
"dto.sequenceNbrList != null and dto.sequenceNbrList.size() > 0"
>
and sequence_nbr in
<foreach
collection=
"dto.sequenceNbrList"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</if>
</where>
order by create_time DESC,sequence_nbr DESC
</select>
...
...
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 @
32d536ba
...
...
@@ -359,21 +359,9 @@ public class RepaymentServiceImpl extends BaseService<RepaymentDto, Repayment, R
public
void
exportRepaymentExcel
(
RepaymentBatchDto
repaymentBatchDto
,
HttpServletResponse
response
)
{
LambdaQueryWrapper
<
Repayment
>
wrapper
=
new
LambdaQueryWrapper
<>();
//如果是空值导出全部
List
<
Repayment
>
repaymentList
;
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
();
}
List
<
Repayment
>
repaymentList
=
baseMapper
.
getAllData
(
repaymentBatchDto
);
if
(
CollectionUtil
.
isNotEmpty
(
repaymentList
))
{
List
<
RepaymentExcelVO
>
dataList
=
new
ArrayList
<>();
for
(
Repayment
repayment
:
repaymentList
)
{
...
...
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