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
83d8231d
Commit
83d8231d
authored
Sep 30, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加微型消防站的excle导出魔板
parent
9c226612
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+25
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
View file @
83d8231d
...
@@ -1048,6 +1048,8 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -1048,6 +1048,8 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
data
=
initDutyCarTemplate
(
ids
);
data
=
initDutyCarTemplate
(
ids
);
}
else
if
(
ExcelEnums
.
RYZB
.
getType
().
equals
(
excelDto
.
getType
()))
{
}
else
if
(
ExcelEnums
.
RYZB
.
getType
().
equals
(
excelDto
.
getType
()))
{
data
=
initDutyPersonTemplate
(
ids
);
data
=
initDutyPersonTemplate
(
ids
);
}
else
if
(
ExcelEnums
.
WXXFZB
.
getType
().
equals
(
excelDto
.
getType
())){
data
=
initDutyDutyFireFightingTemplate
(
ids
);
}
}
// 获取日期
// 获取日期
List
<
Map
<
String
,
Object
>>
rangeDate
=
dutyPersonShiftService
.
getBaseMapper
().
genRangeDate
(
beginDate
,
endDate
);
List
<
Map
<
String
,
Object
>>
rangeDate
=
dutyPersonShiftService
.
getBaseMapper
().
genRangeDate
(
beginDate
,
endDate
);
...
@@ -1056,6 +1058,29 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
...
@@ -1056,6 +1058,29 @@ if (excelDtoList != null && excelDtoList.size() > 0) {
exportDutyTemplate
(
response
,
excelDto
.
getClassUrl
(),
dayByMonth
,
excelDto
,
data
,
true
);
exportDutyTemplate
(
response
,
excelDto
.
getClassUrl
(),
dayByMonth
,
excelDto
,
data
,
true
);
}
}
private
List
<
List
<
Object
>>
initDutyDutyFireFightingTemplate
(
String
ids
)
{
List
<
List
<
Object
>>
data
=
new
ArrayList
<>();
// 根据id列表获取单位下的微型消防站集合
List
<
String
>
companyIdList
=
Lists
.
newArrayList
();
if
(!
ValidationUtil
.
isEmpty
(
ids
))
{
companyIdList
=
Lists
.
newArrayList
(
ids
.
split
(
","
));
}
List
<
FirefightersDto
>
firefightersDtoList
=
fireTeamService
.
getFighterByTeamId
(
companyIdList
);
if
(!
firefightersDtoList
.
isEmpty
())
{
AtomicInteger
row
=
new
AtomicInteger
(
1
);
firefightersDtoList
.
forEach
(
o
->
{
ArrayList
<
Object
>
list
=
new
ArrayList
<>();
list
.
add
(
row
.
getAndIncrement
());
list
.
add
(
o
.
getFireTeamName
()
+
"@"
+
o
.
getFireTeamId
());
list
.
add
(
o
.
getName
()
+
"@"
+
o
.
getSequenceNbr
());
list
.
add
(
o
.
getJobTitle
()
+
"@"
+
o
.
getJobTitleCode
());
data
.
add
(
list
);
});
}
return
data
;
}
public
void
dutyInfoExport
(
HttpServletResponse
response
,
String
beginDate
,
String
endDate
,
ExcelDto
excelDto
)
public
void
dutyInfoExport
(
HttpServletResponse
response
,
String
beginDate
,
String
endDate
,
ExcelDto
excelDto
)
throws
ParseException
{
throws
ParseException
{
// 获取日期
// 获取日期
...
...
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