Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
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
项目统一框架
amos-boot-biz
Commits
fb648675
Commit
fb648675
authored
Jun 08, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报表下载文件名
parent
13101fb3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
FilePatrolReportServiceImpl.java
...equipmanage/service/impl/FilePatrolReportServiceImpl.java
+3
-2
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FilePatrolReportServiceImpl.java
View file @
fb648675
...
@@ -78,17 +78,18 @@ public class FilePatrolReportServiceImpl implements IFirePatrolReportService {
...
@@ -78,17 +78,18 @@ public class FilePatrolReportServiceImpl implements IFirePatrolReportService {
analysisReportLog
.
setStartDate
(
startDate
);
analysisReportLog
.
setStartDate
(
startDate
);
analysisReportLog
.
setEndDate
(
endDate
);
analysisReportLog
.
setEndDate
(
endDate
);
Map
<
String
,
Object
>
report
=
analysisReportLogMapper
.
getReport
(
analysisReportLog
);
Map
<
String
,
Object
>
report
=
analysisReportLogMapper
.
getReport
(
analysisReportLog
);
SimpleDateFormat
dateStat
=
new
SimpleDateFormat
(
"yyyy年MM月dd日"
);
// 文档编号
// 文档编号
String
timeStr1
=
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyyMMddHHmmss"
));
String
timeStr1
=
LocalDateTime
.
now
().
format
(
DateTimeFormatter
.
ofPattern
(
"yyyyMMddHHmmss"
));
String
documentNumber
=
"ZD-XFSBXC"
+
timeStr1
;
String
documentNumber
=
"ZD-XFSBXC"
+
timeStr1
;
String
documentNameTime
=
dateStat
.
format
(
startDate
);
map
.
put
(
"document_number"
,
documentNumber
);
map
.
put
(
"document_number"
,
documentNumber
);
// 设置文档文件名
// 设置文档文件名
map
.
put
(
"document_name"
,
"消防巡查报表"
+
timeStr1
);
map
.
put
(
"document_name"
,
"消防巡查报表"
+
documentNameTime
);
// 换流站名称
// 换流站名称
String
stationName
=(
String
)
station
.
get
(
"biz_org_name"
);
String
stationName
=(
String
)
station
.
get
(
"biz_org_name"
);
map
.
put
(
"station_name"
,
stationName
);
map
.
put
(
"station_name"
,
stationName
);
// 统计时间
// 统计时间
SimpleDateFormat
dateStat
=
new
SimpleDateFormat
(
"yyyy年MM月dd日"
);
String
statisticalTime
=
dateStat
.
format
(
startDate
)
+
"-"
+
dateStat
.
format
(
endDate
);
String
statisticalTime
=
dateStat
.
format
(
startDate
)
+
"-"
+
dateStat
.
format
(
endDate
);
if
(
statisticalTime
.
contains
(
"年0"
))
{
if
(
statisticalTime
.
contains
(
"年0"
))
{
statisticalTime
=
statisticalTime
.
replaceAll
(
"年0"
,
"年"
);
statisticalTime
=
statisticalTime
.
replaceAll
(
"年0"
,
"年"
);
...
...
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