Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
clx-performance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
姜武杰
clx-performance
Commits
e3d53124
提交
e3d53124
authored
3月 02, 2024
作者:
liuhaiquan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修改excel 表头的列宽
上级
25295cb4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
13 行增加
和
7 行删除
+13
-7
OwnerLoanAccountRunningWaterRecordController.java
...n/owner/OwnerLoanAccountRunningWaterRecordController.java
+1
-1
OwnerLoanAccountRunWaterRecordDTO.java
...lx/performance/dto/OwnerLoanAccountRunWaterRecordDTO.java
+12
-6
没有找到文件。
performance-web/src/main/java/com/clx/performance/controller/pc/loan/owner/OwnerLoanAccountRunningWaterRecordController.java
浏览文件 @
e3d53124
...
@@ -49,7 +49,7 @@ public class OwnerLoanAccountRunningWaterRecordController {
...
@@ -49,7 +49,7 @@ public class OwnerLoanAccountRunningWaterRecordController {
public
void
exportOwnerLoanRunWaterRecord
(
@RequestBody
@Validated
PageOwnerLoanRunWaterRecordParam
param
,
HttpServletResponse
response
)
throws
Exception
{
public
void
exportOwnerLoanRunWaterRecord
(
@RequestBody
@Validated
PageOwnerLoanRunWaterRecordParam
param
,
HttpServletResponse
response
)
throws
Exception
{
List
<
OwnerLoanAccountRunWaterRecordDTO
>
list
=
ownerLoanAccountRunningWaterRecordService
.
exportOwnerLoanRunWaterRecord
(
param
);
List
<
OwnerLoanAccountRunWaterRecordDTO
>
list
=
ownerLoanAccountRunningWaterRecordService
.
exportOwnerLoanRunWaterRecord
(
param
);
response
.
setHeader
(
HttpHeaders
.
CONTENT_TYPE
,
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
response
.
setHeader
(
HttpHeaders
.
CONTENT_TYPE
,
MediaType
.
APPLICATION_OCTET_STREAM_VALUE
);
EasyExcel
.
write
(
response
.
getOutputStream
(),
OwnerLoanAccountRunWaterRecordDTO
.
class
).
sheet
().
doWrite
(
list
);
EasyExcel
.
write
(
response
.
getOutputStream
(),
OwnerLoanAccountRunWaterRecordDTO
.
class
).
sheet
(
"账户流水"
).
doWrite
(
list
);
}
}
...
...
performance-web/src/main/java/com/clx/performance/dto/OwnerLoanAccountRunWaterRecordDTO.java
浏览文件 @
e3d53124
...
@@ -2,6 +2,7 @@ package com.clx.performance.dto;
...
@@ -2,6 +2,7 @@ package com.clx.performance.dto;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelIgnore
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.ExcelProperty
;
import
com.alibaba.excel.annotation.write.style.ColumnWidth
;
import
com.clx.performance.enums.loan.OwnerLoanAccountRunningWaterRecordEnum
;
import
com.clx.performance.enums.loan.OwnerLoanAccountRunningWaterRecordEnum
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Getter
;
...
@@ -25,20 +26,24 @@ import java.util.Objects;
...
@@ -25,20 +26,24 @@ import java.util.Objects;
@NoArgsConstructor
@NoArgsConstructor
public
class
OwnerLoanAccountRunWaterRecordDTO
{
public
class
OwnerLoanAccountRunWaterRecordDTO
{
@ColumnWidth
(
30
)
@ExcelProperty
(
"货主编码"
)
@ExcelProperty
(
"货主编码"
)
private
String
ownerUserNo
;
private
String
ownerUserNo
;
@ColumnWidth
(
30
)
@ExcelProperty
(
"货主名称"
)
@ExcelProperty
(
"货主名称"
)
private
String
ownerUserName
;
private
String
ownerUserName
;
@ColumnWidth
(
30
)
@ExcelProperty
(
"联系电话"
)
@ExcelProperty
(
"联系电话"
)
private
String
mobile
;
private
String
mobile
;
@ColumnWidth
(
30
)
@ExcelProperty
(
"流水号"
)
@ExcelProperty
(
"流水号"
)
private
String
runningWaterNo
;
private
String
runningWaterNo
;
@ColumnWidth
(
50
)
@ExcelProperty
(
"运单编号"
)
@ExcelProperty
(
"运单编号"
)
private
String
childNo
;
private
String
childNo
;
...
@@ -51,14 +56,14 @@ public class OwnerLoanAccountRunWaterRecordDTO {
...
@@ -51,14 +56,14 @@ public class OwnerLoanAccountRunWaterRecordDTO {
public
String
getRunningWaterTypeMsg
(){
public
String
getRunningWaterTypeMsg
(){
return
OwnerLoanAccountRunningWaterRecordEnum
.
RunWaterType
.
getMsgByCode
(
runningWaterType
);
return
OwnerLoanAccountRunningWaterRecordEnum
.
RunWaterType
.
getMsgByCode
(
runningWaterType
);
}
}
@ColumnWidth
(
20
)
@ExcelProperty
(
"金额"
)
@ExcelProperty
(
"金额"
)
private
BigDecimal
alterationBalance
;
private
BigDecimal
alterationBalance
;
public
BigDecimal
getAlterationBalance
(){
public
BigDecimal
getAlterationBalance
(){
return
Objects
.
isNull
(
alterationBalance
)?
null
:
alterationBalance
.
movePointLeft
(
2
);
return
Objects
.
isNull
(
alterationBalance
)?
null
:
alterationBalance
.
movePointLeft
(
2
);
}
}
@ColumnWidth
(
60
)
@ExcelProperty
(
"冻结余额"
)
@ExcelProperty
(
"冻结余额"
)
private
BigDecimal
frozenBalance
;
private
BigDecimal
frozenBalance
;
...
@@ -68,7 +73,7 @@ public class OwnerLoanAccountRunWaterRecordDTO {
...
@@ -68,7 +73,7 @@ public class OwnerLoanAccountRunWaterRecordDTO {
@ColumnWidth
(
70
)
@ExcelProperty
(
"可用余额"
)
@ExcelProperty
(
"可用余额"
)
private
BigDecimal
useAbleBalance
;
private
BigDecimal
useAbleBalance
;
...
@@ -76,7 +81,7 @@ public class OwnerLoanAccountRunWaterRecordDTO {
...
@@ -76,7 +81,7 @@ public class OwnerLoanAccountRunWaterRecordDTO {
return
Objects
.
isNull
(
useAbleBalance
)?
null
:
useAbleBalance
.
movePointLeft
(
2
);
return
Objects
.
isNull
(
useAbleBalance
)?
null
:
useAbleBalance
.
movePointLeft
(
2
);
}
}
@ColumnWidth
(
80
)
@ExcelProperty
(
"账户余额"
)
@ExcelProperty
(
"账户余额"
)
private
BigDecimal
accountBalance
;
private
BigDecimal
accountBalance
;
...
@@ -85,10 +90,11 @@ public class OwnerLoanAccountRunWaterRecordDTO {
...
@@ -85,10 +90,11 @@ public class OwnerLoanAccountRunWaterRecordDTO {
}
}
@ColumnWidth
(
10
)
@ExcelProperty
(
"操作人"
)
@ExcelProperty
(
"操作人"
)
private
String
createBy
;
private
String
createBy
;
@ColumnWidth
(
10
)
@ExcelProperty
(
"操作时间"
)
@ExcelProperty
(
"操作时间"
)
private
String
createTime
;
private
String
createTime
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论