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
c44a74aa
Commit
c44a74aa
authored
Mar 03, 2020
by
yinyong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出费用列表excel新增发票状态
parent
97cb0f3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
1 deletion
+48
-1
CostExportServiceImpl.java
.../other/other_cost/service/impl/CostExportServiceImpl.java
+6
-1
TypeRelationDomain.java
...om/blt/other/other_database/model/TypeRelationDomain.java
+42
-0
No files found.
cost-core/src/main/java/com/blt/other/other_cost/service/impl/CostExportServiceImpl.java
View file @
c44a74aa
...
...
@@ -51,7 +51,7 @@ public class CostExportServiceImpl implements CostExportService {
return
null
;
}
// 设置表头
String
[]
headers
=
{
"费用单号"
,
"费用类型"
,
"费用单大类"
,
"费用单小类"
,
"费用单状态"
,
"借支/借还"
,
"关联借支单号"
,
"借支单状态"
,
"是否抵个税"
,
"付款主体"
,
"收款单位"
,
"付款理由"
,
"付款金额"
,
"币种"
,
"创建人名称"
,
"下单时间"
,
"用途"
,
"付款时间"
};
String
[]
headers
=
{
"费用单号"
,
"费用类型"
,
"费用单大类"
,
"费用单小类"
,
"费用单状态"
,
"借支/借还"
,
"关联借支单号"
,
"借支单状态"
,
"是否抵个税"
,
"付款主体"
,
"收款单位"
,
"付款理由"
,
"付款金额"
,
"币种"
,
"创建人名称"
,
"下单时间"
,
"用途"
,
"付款时间"
,
"发票状态"
};
HSSFRow
row0
=
sheet
.
createRow
(
0
);
for
(
int
i
=
0
;
i
<
headers
.
length
;
i
++){
HSSFCell
cell
=
row0
.
createCell
(
i
);
...
...
@@ -106,6 +106,11 @@ public class CostExportServiceImpl implements CostExportService {
row
.
createCell
(
1
).
setCellValue
(
"借还"
);
row
.
createCell
(
12
).
setCellValue
(
costDto
.
getPayPlanAmountDto
());
row
.
createCell
(
13
).
setCellValue
(
costDto
.
getPayDicDto
());
if
(
costDto
.
getHasInvoice
()
==
1
)
{
row
.
createCell
(
18
).
setCellValue
(
"有"
);
}
else
{
row
.
createCell
(
18
).
setCellValue
(
""
);
}
}
}
rows
++;
...
...
cost-core/src/main/java/com/blt/other/other_database/model/TypeRelationDomain.java
0 → 100644
View file @
c44a74aa
package
com
.
blt
.
other
.
other_database
.
model
;
public
class
TypeRelationDomain
{
private
Integer
id
;
private
String
manageCostType
;
private
String
feeType
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getManageCostType
()
{
return
manageCostType
;
}
public
void
setManageCostType
(
String
manageCostType
)
{
this
.
manageCostType
=
manageCostType
;
}
public
String
getFeeType
()
{
return
feeType
;
}
public
void
setFeeType
(
String
feeType
)
{
this
.
feeType
=
feeType
;
}
@Override
public
String
toString
()
{
return
"TypeRelationDomain{"
+
"id="
+
id
+
", manageCostType='"
+
manageCostType
+
'\''
+
", feeType='"
+
feeType
+
'\''
+
'}'
;
}
}
\ No newline at end of file
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