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
ebfd1321
Commit
ebfd1321
authored
Jun 25, 2022
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改系统状态接口返回格式
parent
37b7f0d5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
FireStationInfoMapper.xml
...s-api/src/main/resources/mapper/FireStationInfoMapper.xml
+1
-1
FireStationInfoController.java
.../module/ccs/biz/controller/FireStationInfoController.java
+1
-1
FireStationInfoServiceImpl.java
...dule/ccs/biz/service/impl/FireStationInfoServiceImpl.java
+8
-4
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-ccs-api/src/main/resources/mapper/FireStationInfoMapper.xml
View file @
ebfd1321
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
and s.confirm_date like concat(date ,'%')
and s.confirm_date like concat(date ,'%')
</where>
</where>
) as alarmNums,
) as alarmNums,
date
concat(date ,'时') as
date
from
from
(SELECT
(SELECT
DATE_FORMAT( DATE_ADD( #{beginDateTime}, INTERVAL @s HOUR ),'%Y-%m-%d %H') AS date,
DATE_FORMAT( DATE_ADD( #{beginDateTime}, INTERVAL @s HOUR ),'%Y-%m-%d %H') AS date,
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-ccs-biz/src/main/java/com/yeejoin/amos/boot/module/ccs/biz/controller/FireStationInfoController.java
View file @
ebfd1321
...
@@ -122,7 +122,7 @@ public class FireStationInfoController extends BaseController {
...
@@ -122,7 +122,7 @@ public class FireStationInfoController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据换流站code统计消防系统状态"
,
notes
=
"根据换流站code统计消防系统状态"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据换流站code统计消防系统状态"
,
notes
=
"根据换流站code统计消防系统状态"
)
@GetMapping
(
value
=
"/getFireSystemByStationCode"
)
@GetMapping
(
value
=
"/getFireSystemByStationCode"
)
public
ResponseModel
<
Map
<
String
,
Integer
>>
getFireSystemByStationCode
(
@ApiParam
(
value
=
"换流站编号"
,
required
=
true
)
@RequestParam
(
required
=
true
)
String
stationCode
)
{
public
ResponseModel
<
List
<
Map
<
String
,
String
>
>>
getFireSystemByStationCode
(
@ApiParam
(
value
=
"换流站编号"
,
required
=
true
)
@RequestParam
(
required
=
true
)
String
stationCode
)
{
if
(
StrUtil
.
isEmpty
(
stationCode
))
{
if
(
StrUtil
.
isEmpty
(
stationCode
))
{
throw
new
BadRequest
(
"换流站编号不能为空"
);
throw
new
BadRequest
(
"换流站编号不能为空"
);
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-ccs-biz/src/main/java/com/yeejoin/amos/boot/module/ccs/biz/service/impl/FireStationInfoServiceImpl.java
View file @
ebfd1321
...
@@ -164,12 +164,15 @@ public class FireStationInfoServiceImpl extends BaseService<FireStationInfoDto,
...
@@ -164,12 +164,15 @@ public class FireStationInfoServiceImpl extends BaseService<FireStationInfoDto,
return
carInfoByStationCode
;
return
carInfoByStationCode
;
}
}
public
Map
<
String
,
Integer
>
getFireSystemByStationCode
(
String
stationCode
)
{
public
List
<
Map
<
String
,
String
>
>
getFireSystemByStationCode
(
String
stationCode
)
{
HashMap
<
String
,
Integer
>
resultMap
=
new
HashMap
<>();
List
<
Map
<
String
,
String
>>
resultList
=
new
ArrayList
<>();
List
<
FireFightingSystem
>
mridList
=
fireFightingSystemMapper
.
getMridByCode
(
stationCode
);
List
<
FireFightingSystem
>
mridList
=
fireFightingSystemMapper
.
getMridByCode
(
stationCode
);
mridList
.
forEach
(
item
->
{
mridList
.
forEach
(
item
->
{
resultMap
.
put
(
item
.
getName
(),
fireEquipmentSignalLogMapper
.
getAlarmCountByMrid
(
item
.
getMrid
()));
HashMap
<
String
,
String
>
resultMap
=
new
HashMap
<>();
resultMap
.
put
(
"systemName"
,
item
.
getName
());
resultMap
.
put
(
"alarmNum"
,
String
.
valueOf
(
fireEquipmentSignalLogMapper
.
getAlarmCountByMrid
(
item
.
getMrid
())));
resultList
.
add
(
resultMap
);
});
});
return
result
Map
;
return
result
List
;
}
}
}
}
\ No newline at end of file
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