Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
4d8108f0
Commit
4d8108f0
authored
Mar 02, 2023
by
jianshuqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出费用单列表增加所属项目、所属账期、人民币金额字段
parent
3bfa097f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
CostExportServiceImpl.java
...other/module/cost/service/impl/CostExportServiceImpl.java
+4
-1
No files found.
cost-service/src/main/java/com/blt/other/module/cost/service/impl/CostExportServiceImpl.java
View file @
4d8108f0
...
...
@@ -53,7 +53,7 @@ public class CostExportServiceImpl implements CostExportService {
}
// 设置表头
String
[]
headers
=
{
"费用单号"
,
"费用类型"
,
"费用单大类"
,
"费用单小类"
,
"费用单状态"
,
"借支/借还"
,
"关联借支单号"
,
"借支单状态"
,
"是否抵个税"
,
"付款主体"
,
"收款单位"
,
"付款理由"
,
"付款金额"
,
"币种"
,
"创建人名称"
,
"下单时间"
,
"用途"
,
"付款时间"
,
"发票状态"
,
"项目"
,
"客户编号"
,
"会计科目"
};
,
"项目"
,
"客户编号"
,
"会计科目"
,
"所属项目"
,
"所属账期"
,
"人民币金额"
};
HSSFRow
row0
=
sheet
.
createRow
(
0
);
for
(
int
i
=
0
;
i
<
headers
.
length
;
i
++)
{
HSSFCell
cell
=
row0
.
createCell
(
i
);
...
...
@@ -117,6 +117,9 @@ public class CostExportServiceImpl implements CostExportService {
row
.
createCell
(
19
).
setCellValue
(
costDto
.
getProjectType
());
row
.
createCell
(
20
).
setCellValue
(
costDto
.
getCustomerNum
());
row
.
createCell
(
21
).
setCellValue
(
costDto
.
getAccountingSubjectName
());
row
.
createCell
(
22
).
setCellValue
(
costDto
.
getProject
());
row
.
createCell
(
23
).
setCellValue
(
costDto
.
getProjectDate
()
!=
null
?
new
SimpleDateFormat
(
"yyyy-MM"
).
format
(
costDto
.
getProjectDate
())
:
""
);
row
.
createCell
(
24
).
setCellValue
(
costDto
.
getAmountRmb
().
toString
());
rows
++;
}
// 保存到本地,并且返回路径
...
...
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