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
66d0501a
Commit
66d0501a
authored
Jul 08, 2022
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改模板
parent
231685e7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
8 deletions
+35
-8
AlertCalledServiceImpl.java
...t/module/jcs/biz/service/impl/AlertCalledServiceImpl.java
+4
-4
AlertSubmittedServiceImpl.java
...odule/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
+8
-1
dbTemplate_fire_equip.xml
...as/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
+23
-3
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/AlertCalledServiceImpl.java
View file @
66d0501a
...
...
@@ -712,16 +712,16 @@ public class AlertCalledServiceImpl extends BaseService<AlertCalledDto, AlertCal
// 统计参与人员
List
<
KeyValueLabel
>
listdate
=
new
ArrayList
<>();
if
(
al
.
getAlertStatus
()){
listdate
.
add
(
new
KeyValueLabel
(
"调动人力"
,
"useNum"
,
"0"
,
"人"
));
}
//
if(al.getAlertStatus()){
//
listdate.add(new KeyValueLabel("调动人力", "useNum", "0", "人"));
//
}
if
(
list
!=
null
&&
list
.
size
()>
0
){
listdate
.
add
(
new
KeyValueLabel
(
"调动人力"
,
"useNum"
,
list
.
size
(),
"人"
));
}
else
{
listdate
.
add
(
new
KeyValueLabel
(
"调动人力"
,
"useNum"
,
"0"
,
"人"
));
}
listdate
.
add
(
new
KeyValueLabel
(
"调动人力"
,
"useNum"
,
"0"
,
"人"
));
//
listdate.add(new KeyValueLabel("调动人力", "useNum", "0", "人"));
// 统计参与车辆
listdate
.
add
(
new
KeyValueLabel
(
"调派车辆"
,
"carNum"
,
map
.
get
(
"carNum"
),
"辆/次"
));
// 统计参与队伍
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-jcs-biz/src/main/java/com/yeejoin/amos/boot/module/jcs/biz/service/impl/AlertSubmittedServiceImpl.java
View file @
66d0501a
...
...
@@ -1242,11 +1242,16 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
int
listLength
=
dangerList
.
size
();
for
(
int
i
=
0
;
i
<
fSizs
;
i
++)
{
if
(
i
==
0
)
{
TableStyle
tableStyle
=
new
TableStyle
();
tableStyle
.
setAlign
(
Enum
.
forString
(
"center"
));
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
setCellStyle
(
tableStyle
);
Style
style
=
new
Style
();
style
.
setFontFamily
(
"宋体"
);
style
.
setFontSize
(
12
);
style
.
setBold
(
true
);
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
getRenderData
().
setStyle
(
style
);
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
getRenderData
().
setText
(
"增\n援\n力\n量"
);
}
else
{
reverseList
.
get
(
i
).
getCellDatas
().
forEach
(
cellRenderData
->
{
Style
style
=
new
Style
();
...
...
@@ -1265,13 +1270,15 @@ public class AlertSubmittedServiceImpl extends BaseService<AlertSubmittedDto, Al
for
(
int
i
=
fSizs
;
i
<
listLength
;
i
++)
{
TableStyle
tableStyle
=
new
TableStyle
();
tableStyle
.
setAlign
(
Enum
.
forInt
(
2
));
tableStyle
.
setAlign
(
Enum
.
forString
(
"center"
));
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
setCellStyle
(
tableStyle
);
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
getRenderData
().
setText
(
"增\n援\n力\n量"
);
Style
style
=
new
Style
();
style
.
setFontFamily
(
"宋体"
);
style
.
setFontSize
(
12
);
style
.
setBold
(
true
);
reverseList
.
get
(
i
).
getCellDatas
().
get
(
0
).
getRenderData
().
setStyle
(
style
);
// reverseList.get(i).getCellDatas().forEach(cellRenderData -> {
// Style style = new Style();
...
...
amos-boot-system-fas/src/main/resources/db/mapper/dbTemplate_fire_equip.xml
View file @
66d0501a
...
...
@@ -199,9 +199,29 @@
<if
test=
"equipmentName!=null"
>
AND d.equipmentName LIKE '%${equipmentName}%'
</if>
<if
test=
"startTime!=null"
>
AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
</if>
<!-- <if test="startTime!=null and endTime!=null ">-->
<!-- AND d.create_date BETWEEN '${startTime}' AND '${endTime}'-->
<!-- </if>-->
<choose>
<when
test=
"startTime!=null and endTime!=null "
>
AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
</when>
<otherwise>
<if
test=
"startTime!=null"
>
AND d.create_date
>
= '${startTime}'
</if>
<if
test=
"endTime!=null "
>
AND d.create_date
<
= '${endTime}'
</if>
</otherwise>
</choose>
<if
test=
"buildId!=null"
>
AND d.buildId in (#{buildId})
<!-- AND d.buildId in
...
...
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