Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
c4bd8d62
Commit
c4bd8d62
authored
4 years ago
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tkio导出增加字段
parent
a3580531
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
ContractController.java
src/main/java/common/controller/ContractController.java
+7
-3
No files found.
src/main/java/common/controller/ContractController.java
View file @
c4bd8d62
...
...
@@ -135,7 +135,7 @@ public class ContractController {
List
<
String
>
title
;
if
(
platform
.
equals
(
"tkio"
)){
title
=
Arrays
.
asList
(
"录入时间,合同编号,客户账号,我方签约主体,签约方,行政区域,隶属集团,行业分类,销售,开始日期,结束日期,套餐类型,合同流量(万次),赠送流量(万次),合同金额,签约类型,合同状态,回款状态,关联合同"
title
=
Arrays
.
asList
(
"录入时间,合同编号,客户账号,我方签约主体,签约方,行政区域,隶属集团,行业分类,销售,开始日期,结束日期,套餐类型,合同流量(万次),赠送流量(万次),合同金额,签约类型,合同状态,回款状态,关联合同
,关联合同编号,补充协议签订日期
"
.
split
(
","
));
}
else
{
title
=
Arrays
.
asList
(
"录入时间,合同编号,客户账号,我方签约主体,签约方,行政区域,隶属集团,行业分类,销售,开始日期,结束日期,套餐类型,合同金额,签约类型,合同状态,回款状态,关联合同"
...
...
@@ -169,7 +169,9 @@ public class ContractController {
rowBody
.
createCell
(
15
).
setCellValue
(
CONTRACT_STATUS
.
get
(
contract
.
getContractType
()));
rowBody
.
createCell
(
16
).
setCellValue
(
CONTRACT_STATUS
.
get
(
contract
.
getStatus
()));
rowBody
.
createCell
(
17
).
setCellValue
(
CONTRACT_STATUS
.
get
(
contract
.
getBackStatus
()
+
"_back"
));
rowBody
.
createCell
(
18
).
setCellValue
(
contract
.
getRelationCode
()
==
null
?
""
:
contract
.
getRelationCode
());
rowBody
.
createCell
(
18
).
setCellValue
(
contract
.
getRelationCode
()
==
null
?
"无"
:
"有"
);
rowBody
.
createCell
(
19
).
setCellValue
(
contract
.
getRelationCode
()
==
null
?
""
:
contract
.
getRelationCode
());
rowBody
.
createCell
(
20
).
setCellValue
(
contract
.
getSignedDate
()
==
null
?
""
:
contract
.
getSignedDate
());
}
else
{
rowBody
.
createCell
(
12
).
setCellValue
(
contract
.
getMoney
());
rowBody
.
createCell
(
13
).
setCellValue
(
CONTRACT_STATUS
.
get
(
contract
.
getContractType
()));
...
...
@@ -630,7 +632,7 @@ public class ContractController {
//创建工作表的行
HSSFRow
row
=
sheet
.
createRow
(
0
);
List
<
String
>
title
=
Arrays
.
asList
(
"我方签约主体,签约方,合同编号,行政区域,隶属集团,合同开始日期,合同截止日期,合同状态,合同金额(元),合同流量(万次),单价(元/万次),区间点击数(万次),区间分摊收入(元),区间调整金额(元),区间总收入(元),累计总收入(元),赠送点击量(万次)"
List
<
String
>
title
=
Arrays
.
asList
(
"我方签约主体,签约方,合同编号,行政区域,隶属集团,合同开始日期,合同截止日期,合同状态,合同金额(元),合同流量(万次),单价(元/万次),区间点击数(万次),区间分摊收入(元),区间调整金额(元),区间总收入(元),累计总收入(元),赠送点击量(万次)
,关联合同编号,补充协议签订日期
"
.
split
(
","
));
int
lineSize
=
title
.
size
();
...
...
@@ -658,6 +660,8 @@ public class ContractController {
rowBody
.
createCell
(
14
).
setCellValue
(
df
.
format
(
contract
.
getIncomeShareAll
()
/
100.0
));
rowBody
.
createCell
(
15
).
setCellValue
(
df
.
format
(
contract
.
getIncomeGross
()
/
100.0
));
rowBody
.
createCell
(
16
).
setCellValue
(
df2
.
format
(
contract
.
getExtraFlow
()
/
10000.0
));
rowBody
.
createCell
(
17
).
setCellValue
(
contract
.
getRelationCode
()
==
null
?
""
:
contract
.
getRelationCode
());
rowBody
.
createCell
(
18
).
setCellValue
(
contract
.
getSignedDate
()
==
null
?
""
:
contract
.
getSignedDate
());
}
return
workbook
;
}
...
...
This diff is collapsed.
Click to expand it.
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