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
83506979
Commit
83506979
authored
Aug 29, 2022
by
litengwei
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_dl_plan6' into develop_dl_plan6
parents
6fe4d7b8
4e0995e3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
52 additions
and
27 deletions
+52
-27
ConfigureController.java
...m/yeejoin/equipmanage/controller/ConfigureController.java
+1
-1
FireFightingSystemMapper.java
.../yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
+7
-4
FireFightingSystemServiceImpl.java
...uipmanage/service/impl/FireFightingSystemServiceImpl.java
+17
-17
ExcelServiceImpl.java
...os/boot/module/jcs/biz/service/impl/ExcelServiceImpl.java
+1
-1
iotDayReport.ftl
...boot-system-equip/src/main/resources/ftl/iotDayReport.ftl
+2
-2
iotMonthReport.ftl
...ot-system-equip/src/main/resources/ftl/iotMonthReport.ftl
+1
-1
iotWeekReport.ftl
...oot-system-equip/src/main/resources/ftl/iotWeekReport.ftl
+1
-1
systemIndex.json
...oot-system-equip/src/main/resources/json/systemIndex.json
+22
-0
FireFightingSystemMapper.xml
...ip/src/main/resources/mapper/FireFightingSystemMapper.xml
+0
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/ConfigureController.java
View file @
83506979
...
...
@@ -454,7 +454,7 @@ public class ConfigureController extends AbstractBaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
value
=
"物联监控大屏3大-获取某站下装备数量、摄像头数量"
)
@GetMapping
(
"/statisticsByStation"
)
public
ResponseModel
getEquipmentState
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
public
ResponseModel
statisticsByStation
(
@RequestParam
(
required
=
false
)
String
bizOrgCode
)
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/FireFightingSystemMapper.java
View file @
83506979
...
...
@@ -480,7 +480,7 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
selectMonthPolyline
(
@Param
(
"systemCode"
)
String
sysCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"indicator"
)
List
<
String
>
indicator
);
List
<
Map
<
String
,
Object
>>
selectWeekReportList
(
@Param
(
"systemId"
)
String
systemId
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"indicator"
)
List
<
String
>
indicator
);
List
<
Map
<
String
,
Object
>>
selectWeekReportList
(
@Param
(
"systemId"
)
String
systemId
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
Integer
selectAlarms
(
@Param
(
"systemId"
)
String
systemId
,
@Param
(
"indexType"
)
String
indexType
,
...
...
@@ -494,7 +494,8 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
selectWeekEquipEchart
(
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"indicator"
)
List
<
String
>
indicator
);
List
<
Map
<
String
,
Object
>>
selectWeekEchart
(
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"startDate"
)
String
startDate
,
...
...
@@ -502,7 +503,8 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
selectWeekLinesEchart
(
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"indicator"
)
List
<
String
>
indicator
);
Map
<
String
,
Object
>
selectDaySummarize
(
@Param
(
"systemId"
)
String
systemId
,
@Param
(
"startDate"
)
String
startDate
,
...
...
@@ -514,5 +516,6 @@ public interface FireFightingSystemMapper extends BaseMapper<FireFightingSystemE
List
<
Map
<
String
,
Object
>>
selectDayEchart
(
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"indicator"
)
List
<
String
>
indicator
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/FireFightingSystemServiceImpl.java
View file @
83506979
...
...
@@ -1477,7 +1477,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
map
.
put
(
"station"
,
""
);
}
map
.
put
(
"time"
,
startDate
+
"-"
+
endDate
);
map
.
put
(
"time"
,
startDate
.
substring
(
0
,
7
)
);
// 单个系统数据
for
(
Map
<
String
,
Object
>
sys
:
system
)
{
HashMap
<
String
,
Object
>
systemData
=
new
HashMap
<>();
...
...
@@ -1553,10 +1553,10 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
List
<
Map
<
String
,
Object
>>
selectMonthPolyline
=
fireFightingSystemMapper
.
selectMonthPolyline
(
String
.
valueOf
(
sys
.
get
(
"code"
)),
startDate
,
endDate
,
indicatorList
);
String
pieChart
=
ChartsUtils
.
pieChart
(
pieChartList
,
"
设备告警统计
"
);
String
pieChart
=
ChartsUtils
.
pieChart
(
pieChartList
,
"
故障设备类型占比
"
);
systemData
.
put
(
"bing1"
,
pieChart
);
if
(!
CollectionUtils
.
isEmpty
(
pieChartListTwo
))
{
String
pieChart1
=
ChartsUtils
.
pieChart
(
pieChartListTwo
,
"告警
类别统计
"
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
pieChartListTwo
,
"告警
信息占比
"
);
systemData
.
put
(
"bing2"
,
pieChart1
);
}
else
{
List
<
Map
<
String
,
Object
>>
data
=
new
ArrayList
<>();
...
...
@@ -1564,13 +1564,13 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
dataMap
.
put
(
"type"
,
"火警"
);
dataMap
.
put
(
"value"
,
0
);
data
.
add
(
dataMap
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
data
,
"
告警类别统计
"
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
data
,
"
报警趋势
"
);
systemData
.
put
(
"bing2"
,
pieChart1
);
}
if
(!
CollectionUtils
.
isEmpty
(
selectMonthPolyline
))
{
String
pieChart2
=
ChartsUtils
.
manyLineChart
(
selectMonthPolyline
,
"
月告警信息"
,
"日期"
,
"告
警数量"
);
String
pieChart2
=
ChartsUtils
.
manyLineChart
(
selectMonthPolyline
,
"
报警趋势"
,
"日期"
,
"报
警数量"
);
systemData
.
put
(
"bing3"
,
pieChart2
);
}
else
{
systemData
.
put
(
"bing3"
,
""
);
...
...
@@ -1651,7 +1651,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
map
.
put
(
"station"
,
""
);
}
map
.
put
(
"time"
,
startDate
+
"
-
"
+
endDate
);
map
.
put
(
"time"
,
startDate
+
"
至
"
+
endDate
);
// 系统循环数据填充
ArrayList
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
system
:
systemList
)
{
...
...
@@ -1667,7 +1667,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
String
indicator
=
String
.
valueOf
(
collect
.
get
(
0
).
get
(
"index"
));
String
[]
split
=
indicator
.
split
(
","
);
List
<
String
>
indicatorList
=
Arrays
.
asList
(
split
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
,
indicatorList
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
);
ArrayList
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
weekReportList
))
{
for
(
Map
<
String
,
Object
>
weekItem
:
weekReportList
)
{
...
...
@@ -1722,16 +1722,16 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
// echarts 图表
List
<
Map
<
String
,
Object
>>
mapList
=
fireFightingSystemMapper
.
selectWeekEquipEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
mapList
,
"
告警类别统计
"
);
List
<
Map
<
String
,
Object
>>
mapList
=
fireFightingSystemMapper
.
selectWeekEquipEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
,
indicatorList
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
mapList
,
"
故障设备类型占比
"
);
systemData
.
put
(
"pictureLeft"
,
pieChart1
);
List
<
Map
<
String
,
Object
>>
weekEchart
=
fireFightingSystemMapper
.
selectWeekEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
weekEchart
,
"
设备告警统计
"
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
weekEchart
,
"
告警信息占比
"
);
systemData
.
put
(
"pictureCenter"
,
pieChart2
);
List
<
Map
<
String
,
Object
>>
linesEchart
=
fireFightingSystemMapper
.
selectWeekLinesEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
String
lines
=
ChartsUtils
.
manyLineChart
(
linesEchart
,
"
周告警信息"
,
"日期"
,
"告
警数量"
);
List
<
Map
<
String
,
Object
>>
linesEchart
=
fireFightingSystemMapper
.
selectWeekLinesEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
,
indicatorList
);
String
lines
=
ChartsUtils
.
manyLineChart
(
linesEchart
,
"
报警趋势"
,
"日期"
,
"报
警数量"
);
systemData
.
put
(
"lines"
,
lines
);
systemData
.
put
(
"sysData"
,
list
);
...
...
@@ -1794,7 +1794,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
}
else
{
map
.
put
(
"station"
,
""
);
}
map
.
put
(
"time"
,
startDate
+
"-"
+
endDate
);
map
.
put
(
"time"
,
startDate
);
// 系统循环数据填充
ArrayList
<
Map
<
String
,
Object
>>
dataList
=
new
ArrayList
<>();
for
(
Map
<
String
,
Object
>
system
:
systemList
)
{
...
...
@@ -1810,7 +1810,7 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
String
indicator
=
String
.
valueOf
(
collect
.
get
(
0
).
get
(
"index"
));
String
[]
split
=
indicator
.
split
(
","
);
List
<
String
>
indicatorList
=
Arrays
.
asList
(
split
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
,
indicatorList
);
List
<
Map
<
String
,
Object
>>
weekReportList
=
fireFightingSystemMapper
.
selectWeekReportList
(
String
.
valueOf
(
system
.
get
(
"id"
)),
startDate
,
endDate
);
ArrayList
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
weekReportList
))
{
for
(
Map
<
String
,
Object
>
weekItem
:
weekReportList
)
{
...
...
@@ -1864,11 +1864,11 @@ public class FireFightingSystemServiceImpl extends ServiceImpl<FireFightingSyste
// echarts 图表
List
<
Map
<
String
,
Object
>>
mapList
=
fireFightingSystemMapper
.
selectDayEquipEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
mapList
,
"
设备类别类别统计
"
);
String
pieChart1
=
ChartsUtils
.
pieChart
(
mapList
,
"
故障设备类型占比
"
);
systemData
.
put
(
"pictureLeft"
,
pieChart1
);
List
<
Map
<
String
,
Object
>>
weekEchart
=
fireFightingSystemMapper
.
selectDayEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
weekEchart
,
"设备告警统计
"
);
List
<
Map
<
String
,
Object
>>
dayEchart
=
fireFightingSystemMapper
.
selectDayEchart
(
valueOf
(
system
.
get
(
"code"
)),
startDate
,
endDate
,
indicatorList
);
String
pieChart2
=
ChartsUtils
.
pieChart
(
dayEchart
,
"告警信息占比
"
);
systemData
.
put
(
"pictureRight"
,
pieChart2
);
...
...
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 @
83506979
...
...
@@ -1179,7 +1179,7 @@ public class ExcelServiceImpl {
excelDtoList
.
forEach
(
item
->
{
if
(
StringUtils
.
isEmpty
(
item
.
getCompanyName
())
||
StringUtils
.
isEmpty
(
item
.
getName
())
||
StringUtils
.
isEmpty
(
item
.
getType
Code
())
||
StringUtils
.
isEmpty
(
item
.
getAddress
()))
{
StringUtils
.
isEmpty
(
item
.
getType
())
||
StringUtils
.
isEmpty
(
item
.
getAddress
()))
{
throw
new
BadRequest
(
"请检查必填项是否为空"
);
}
FireTeam
fireTeam
=
new
FireTeam
();
...
...
amos-boot-system-equip/src/main/resources/ftl/iotDayReport.ftl
View file @
83506979
...
...
@@ -1036,7 +1036,7 @@
<w:sz
w:val=
"36"
/>
<w:sz-cs
w:val=
"36"
/>
</w:rPr>
<w:t>
</w:t>
<w:t>
</w:t>
</w:r>
<w:r>
<w:rPr>
...
...
@@ -2815,7 +2815,7 @@
<w:sz
w:val=
"24"
/>
<w:sz-cs
w:val=
"24"
/>
</w:rPr>
<w:t>
</w:t>
<w:t>
</w:t>
</w:r>
<w:r>
<w:rPr>
...
...
amos-boot-system-equip/src/main/resources/ftl/iotMonthReport.ftl
View file @
83506979
...
...
@@ -2951,7 +2951,7 @@
<w:sz
w:val=
"24"
/>
<w:sz-cs
w:val=
"24"
/>
</w:rPr>
<w:t>
</w:t>
<w:t>
</w:t>
</w:r>
<w:r>
<w:rPr>
...
...
amos-boot-system-equip/src/main/resources/ftl/iotWeekReport.ftl
View file @
83506979
...
...
@@ -2877,7 +2877,7 @@
<w:sz
w:val=
"24"
/>
<w:sz-cs
w:val=
"24"
/>
</w:rPr>
<w:t>
</w:t>
<w:t>
</w:t>
</w:r>
<
#--
<w:r>
-->
<
#--
<w:rPr>
-->
...
...
amos-boot-system-equip/src/main/resources/json/systemIndex.json
View file @
83506979
...
...
@@ -8,7 +8,28 @@
{
"code"
:
"92990000"
,
"index"
:
"OilLeak,Open,Fault"
}
,
{
"code"
:
"92110000"
,
"index"
:
"Alarm,Fault,Abnormal,State"
}
,
{
"code"
:
"92010000"
,
"index"
:
"FireAlarm,Fault,Shield"
}
,
{
"code"
:
"92030000"
,
"index"
:
"Alarm,Fault,Abnormal"
}
]
\ No newline at end of file
amos-boot-system-equip/src/main/resources/mapper/FireFightingSystemMapper.xml
View file @
83506979
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