Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
7b0d1a05
Commit
7b0d1a05
authored
Jul 30, 2020
by
Water Wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize
parent
2348950d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
13 deletions
+15
-13
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsStatisticsServiceImpl.java
+15
-13
No files found.
yd-api/src/main/java/com/yd/api/agms/service/impl/AgmsStatisticsServiceImpl.java
View file @
7b0d1a05
...
...
@@ -114,7 +114,7 @@ public class AgmsStatisticsServiceImpl implements AgmsStatisticsService {
private
void
getLeadsStatement
(
List
<
LeadsStatisticsInfo
>
resultList
,
HttpServletResponse
response
)
{
String
tableName
=
"YD_leadsStatistics_"
;
String
[]
header
=
new
String
[]{
"数量"
,
"请求SME时间"
,
"指派SME时间"
,
"SME"
,
"SME手机"
,
"开谈时间"
,
"经纪人"
,
"经纪人手机"
,
"商机时间"
,
"商机姓名"
,
"商机微信号"
,
"年龄"
,
"性别"
,
"城市"
,
"血型"
,
"星座"
,
"预计FYP"
,
"预计FYC"
,
"预计件数"
,
"成交时间"
,
"商机来源"
,
"跟进状态"
};
String
[]
header
=
new
String
[]{
"数量"
,
"请求SME时间"
,
"指派SME时间"
,
"SME"
,
"SME手机"
,
"开谈时间"
,
"经纪人"
,
"经纪人手机"
,
"商机时间"
,
"商机姓名"
,
"商机
手机"
,
"商机
微信号"
,
"年龄"
,
"性别"
,
"城市"
,
"血型"
,
"星座"
,
"预计FYP"
,
"预计FYC"
,
"预计件数"
,
"成交时间"
,
"商机来源"
,
"跟进状态"
};
//声明一个工作簿
HSSFWorkbook
workbook
=
new
HSSFWorkbook
();
//生成一个表格,设置表格名称为
...
...
@@ -165,30 +165,32 @@ public class AgmsStatisticsServiceImpl implements AgmsStatisticsService {
row
.
createCell
(
8
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsCreateTime
()));
//第10列创建并赋值--商机姓名
row
.
createCell
(
9
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsName
()));
//第10列创建并赋值--商机手机号
row
.
createCell
(
10
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsMobileNo
()));
//第11列创建并赋值--商机微信号
row
.
createCell
(
1
0
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsWeChatId
()));
row
.
createCell
(
1
1
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsWeChatId
()));
//第12列创建并赋值--年龄
row
.
createCell
(
1
1
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsAge
()));
row
.
createCell
(
1
2
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsAge
()));
//第13列创建并赋值--性别
row
.
createCell
(
1
2
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsGender
()));
row
.
createCell
(
1
3
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsGender
()));
//第14列创建并赋值--城市
row
.
createCell
(
1
3
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsCity
()));
row
.
createCell
(
1
4
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsCity
()));
//第15列创建并赋值--血型
row
.
createCell
(
1
4
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsBloodType
()));
row
.
createCell
(
1
5
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsBloodType
()));
//第16列创建并赋值--星座
row
.
createCell
(
1
5
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsZodiacType
()));
row
.
createCell
(
1
6
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsZodiacType
()));
//第17列创建并赋值--预计FYP
row
.
createCell
(
1
6
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictFYP
(),
"##,###,###,##0.00"
)));
row
.
createCell
(
1
7
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictFYP
(),
"##,###,###,##0.00"
)));
//第18列创建并赋值--预计FYC
row
.
createCell
(
1
7
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictFYC
(),
"##,###,###,##0.00"
)));
row
.
createCell
(
1
8
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictFYC
(),
"##,###,###,##0.00"
)));
//第19列创建并赋值--预计件数
row
.
createCell
(
1
8
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictPieces
(),
"###########"
)));
row
.
createCell
(
1
9
).
setCellValue
(
new
HSSFRichTextString
(
CommonUtil
.
doubleParseString
(
resultList
.
get
(
i
).
getPredictPieces
(),
"###########"
)));
//第20列创建并赋值--成交时间
row
.
createCell
(
19
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getDealTime
()));
row
.
createCell
(
20
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getDealTime
()));
//第21列创建并赋值--商机来源
row
.
createCell
(
2
0
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsSource
()));
row
.
createCell
(
2
1
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsSource
()));
//第22列创建并赋值--跟进状态
row
.
createCell
(
2
1
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsStatus
()));
row
.
createCell
(
2
2
).
setCellValue
(
new
HSSFRichTextString
(
resultList
.
get
(
i
).
getLeadsStatus
()));
}
try
{
//准备将Excel的输出流通过response输出到页面下载
...
...
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