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
25626401
Commit
25626401
authored
Nov 09, 2022
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交指标等统计接口
parent
db69e2f5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
64 additions
and
0 deletions
+64
-0
EquipmentSpecificController.java
...n/equipmanage/controller/EquipmentSpecificController.java
+30
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+8
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+7
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+19
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.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/EquipmentSpecificController.java
View file @
25626401
...
...
@@ -361,6 +361,34 @@ public class EquipmentSpecificController extends AbstractBaseController {
return
equipmentSpecificSerivce
.
getListByEquipmentCode
(
code
);
}
@GetMapping
(
value
=
"/index/normal"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询非告警指标list"
,
notes
=
"查询非告警指标list"
)
public
ResponseModel
normalIndexInfoList
(
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
){
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
normalIndexInfoList
(
startDate
,
endDate
));
}
@GetMapping
(
value
=
"/info/fire"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询火报系统指标"
,
notes
=
"查询火报系统指标"
)
public
ResponseModel
getFireAutoSysInfo
(
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
){
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getFireAutoSysInfo
(
startDate
,
endDate
));
}
@GetMapping
(
value
=
"/info/paomo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询泡沫系统指标"
,
notes
=
"查询泡沫系统指标"
)
public
ResponseModel
getPaomoSysInfo
(
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
){
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getPaomoSysInfo
(
startDate
,
endDate
));
}
@GetMapping
(
value
=
"/info/water"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询给水系统指标"
,
notes
=
"查询给水系统指标"
)
public
ResponseModel
getWaterSysInfo
(
@RequestParam
(
required
=
false
)
String
startDate
,
@RequestParam
(
required
=
false
)
String
endDate
){
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getWaterSysInfo
(
startDate
,
endDate
));
}
@RequestMapping
(
value
=
"/equipment/iotIndexInfo/{equipSpeId}"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据装备id获取物联日志"
,
notes
=
"根据装备id获取物联日志"
)
...
...
@@ -398,4 +426,6 @@ public class EquipmentSpecificController extends AbstractBaseController {
return
CommonResponseUtil
.
success
(
equipmentSpecificSerivce
.
getIndexInfoList
(
iotCode
,
entity
,
isTrend
,
fieldKey
));
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
25626401
...
...
@@ -230,4 +230,12 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
);
Integer
getAllEquipNum
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
Map
<
String
,
Object
>
normalIndexInfoList
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
Map
<
String
,
Object
>
getFireAutoSysInfo
();
Map
<
String
,
Object
>
getPaomoSysInfo
();
Map
<
String
,
Object
>
getWaterSysInfo
();
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
25626401
...
...
@@ -237,4 +237,11 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
*/
List
<
IotIndexInfoVo
>
getIndexInfoList
(
String
iotCode
,
ResponseModel
entity
,
Integer
isTrend
,
String
fieldKey
);
Map
<
String
,
Object
>
normalIndexInfoList
(
String
startDate
,
String
endDate
);
Map
<
String
,
Object
>
getFireAutoSysInfo
(
String
startDate
,
String
endDate
);
Map
<
String
,
Object
>
getPaomoSysInfo
(
String
startDate
,
String
endDate
);
Map
<
String
,
Object
>
getWaterSysInfo
(
String
startDate
,
String
endDate
);
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
25626401
...
...
@@ -1892,4 +1892,23 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
@Override
public
Map
<
String
,
Object
>
normalIndexInfoList
(
String
startDate
,
String
endDate
)
{
return
equipmentSpecificMapper
.
normalIndexInfoList
(
startDate
,
endDate
);
}
@Override
public
Map
<
String
,
Object
>
getFireAutoSysInfo
(
String
startDate
,
String
endDate
)
{
return
equipmentSpecificMapper
.
getFireAutoSysInfo
();
}
@Override
public
Map
<
String
,
Object
>
getPaomoSysInfo
(
String
startDate
,
String
endDate
)
{
return
equipmentSpecificMapper
.
getPaomoSysInfo
();
}
@Override
public
Map
<
String
,
Object
>
getWaterSysInfo
(
String
startDate
,
String
endDate
)
{
return
equipmentSpecificMapper
.
getWaterSysInfo
();
}
}
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
25626401
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