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
9803ced7
Commit
9803ced7
authored
Sep 20, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30546 运行趋势页签接口开发
parent
8cbb0c18
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
106 additions
and
25 deletions
+106
-25
EquipTrendResultVo.java
...join/equipmanage/common/entity/vo/EquipTrendResultVo.java
+3
-3
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+21
-0
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+35
-22
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+2
-0
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+0
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+45
-0
No files found.
amos-boot-module/amos-boot-module-api/amos-boot-module-equip-api/src/main/java/com/yeejoin/equipmanage/common/entity/vo/EquipTrendResultVo.java
View file @
9803ced7
...
@@ -8,7 +8,7 @@ public class EquipTrendResultVo {
...
@@ -8,7 +8,7 @@ public class EquipTrendResultVo {
private
List
<
String
>
legends
;
private
List
<
String
>
legends
;
private
String
yAxisName
;
private
String
yAxisName
;
private
List
<
String
>
xAxisData
;
private
List
<
String
>
xAxisData
;
private
List
<
List
<
String
>>
yAxisData
;
private
List
<
List
<
Object
>>
yAxisData
;
private
List
<
List
<
String
>>
threshold
;
private
List
<
List
<
String
>>
threshold
;
public
List
<
String
>
getLegends
()
{
public
List
<
String
>
getLegends
()
{
...
@@ -35,11 +35,11 @@ public class EquipTrendResultVo {
...
@@ -35,11 +35,11 @@ public class EquipTrendResultVo {
this
.
xAxisData
=
xAxisData
;
this
.
xAxisData
=
xAxisData
;
}
}
public
List
<
List
<
String
>>
getyAxisData
()
{
public
List
<
List
<
Object
>>
getyAxisData
()
{
return
yAxisData
;
return
yAxisData
;
}
}
public
void
setyAxisData
(
List
<
List
<
String
>>
yAxisData
)
{
public
void
setyAxisData
(
List
<
List
<
Object
>>
yAxisData
)
{
this
.
yAxisData
=
yAxisData
;
this
.
yAxisData
=
yAxisData
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
9803ced7
...
@@ -873,4 +873,25 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -873,4 +873,25 @@ public class SupervisionConfigureController extends AbstractBaseController {
EquipTrendResultVo
equipTrendResultVo
=
equipmentSpecificService
.
operatingTrendPressurePump
(
startTime
,
endTime
,
bizOrgCode
,
equipCode
,
indexKey
);
EquipTrendResultVo
equipTrendResultVo
=
equipmentSpecificService
.
operatingTrendPressurePump
(
startTime
,
endTime
,
bizOrgCode
,
equipCode
,
indexKey
);
return
CommonResponseUtil
.
success
(
equipTrendResultVo
);
return
CommonResponseUtil
.
success
(
equipTrendResultVo
);
}
}
@PersonIdentify
@RequestMapping
(
value
=
"/operatingTrendWater"
,
method
=
RequestMethod
.
GET
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备平台运行趋势 水池液位趋势API"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"设备平台运行趋势 水池液位趋势API"
)
public
ResponseModel
operatingTrendWater
(
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
throws
ParseException
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
if
(!
ValidationUtil
.
isEmpty
(
personIdentity
))
{
bizOrgCode
=
personIdentity
.
getBizOrgCode
();
if
(
bizOrgCode
==
null
)
{
return
CommonResponseUtil
.
success
(
null
);
}
}
}
EquipTrendResultVo
equipTrendResultVo
=
equipmentSpecificService
.
operatingTrendWater
(
startTime
,
endTime
,
bizOrgCode
);
return
CommonResponseUtil
.
success
(
equipTrendResultVo
);
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
View file @
9803ced7
...
@@ -75,18 +75,20 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -75,18 +75,20 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
/**
/**
* 根据画布id获取画布绑定设备最新指标状态
* 根据画布id获取画布绑定设备最新指标状态
*
* @param sceneId
* @param sceneId
* @return
* @return
*/
*/
List
<
EquipmentSpecificIndex
>
getEquipLatestStatusBySceneId
(
String
sceneId
);
List
<
EquipmentSpecificIndex
>
getEquipLatestStatusBySceneId
(
String
sceneId
);
List
<
Map
<
String
,
Object
>>
getStatusAll
(
@Param
(
"sceneId"
)
String
sceneId
);
List
<
Map
<
String
,
Object
>>
getStatusAll
(
@Param
(
"sceneId"
)
String
sceneId
);
List
<
String
>
getEquipmentIotCodeLists
();
List
<
String
>
getEquipmentIotCodeLists
();
List
<
HashMap
<
String
,
Object
>>
getEquipBySourceId
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"current"
)
Long
current
,
@Param
(
"size"
)
Long
size
);
List
<
HashMap
<
String
,
Object
>>
getEquipBySourceId
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
,
@Param
(
"current"
)
Long
current
,
@Param
(
"size"
)
Long
size
);
int
getEquipBySourceIdCount
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
);
int
getEquipBySourceIdCount
(
@Param
(
"sourceIds"
)
List
<
Long
>
sourceIds
,
@Param
(
"categoryId"
)
List
<
Long
>
categoryId
,
@Param
(
"equipCode"
)
String
equipCode
,
@Param
(
"equipName"
)
String
equipName
,
@Param
(
"companyId"
)
String
companyId
);
List
getMenuChildren
(
@Param
(
"id"
)
Long
id
);
List
getMenuChildren
(
@Param
(
"id"
)
Long
id
);
...
@@ -167,18 +169,19 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -167,18 +169,19 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
MaintenanceResourceData
>
getSysEquipClassifyDataList
();
List
<
MaintenanceResourceData
>
getSysEquipClassifyDataList
();
IPage
<
MaintenanceResourceDataVo
>
getSysEquipClassifyDataPage
(
Page
page
,
Long
fireFightSysId
,
String
fireFacilityName
,
String
classifyId
,
Long
fireFacilityId
,
List
<
Long
>
buildingId
,
List
<
String
>
bandWbCompany
);
IPage
<
MaintenanceResourceDataVo
>
getSysEquipClassifyDataPage
(
Page
page
,
Long
fireFightSysId
,
String
fireFacilityName
,
String
classifyId
,
Long
fireFacilityId
,
List
<
Long
>
buildingId
,
List
<
String
>
bandWbCompany
);
IPage
<
MaintenanceResourceDataVo
>
getEquipClassifyDataPage
(
Page
page
,
Long
fireFightSysId
,
String
fireFacilityName
,
String
classifyId
,
Long
fireFacilityId
,
List
<
Long
>
buildingId
,
List
<
String
>
bandWbCompany
);
IPage
<
MaintenanceResourceDataVo
>
getEquipClassifyDataPage
(
Page
page
,
Long
fireFightSysId
,
String
fireFacilityName
,
String
classifyId
,
Long
fireFacilityId
,
List
<
Long
>
buildingId
,
List
<
String
>
bandWbCompany
);
List
<
UserDto
>
getEquipSpecificLocationInfo
(
Long
equipmentSpecificId
,
String
[]
fieldName
);
List
<
UserDto
>
getEquipSpecificLocationInfo
(
Long
equipmentSpecificId
,
String
[]
fieldName
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Double
>
getEquipLocationInfo
(
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
Map
<
String
,
Object
>
getEquipSpeInfo
(
@Param
(
"equipmentSpecificId"
)
Long
equipmentSpecificId
);
/**
/**
* 根据specificId删除装备相关数据
* 根据specificId删除装备相关数据
*
* @param specificId specificId
* @param specificId specificId
*/
*/
// void deleteEquipDataBySpecificId(@Param("specificId") Long specificId, @Param("equipDetailId") Long equipDetailId);
// void deleteEquipDataBySpecificId(@Param("specificId") Long specificId, @Param("equipDetailId") Long equipDetailId);
...
@@ -202,31 +205,36 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -202,31 +205,36 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
/**
/**
* 根据库存id删除装备相关库存数据
* 根据库存id删除装备相关库存数据
*
* @param stockDetailId 库存明细id
* @param stockDetailId 库存明细id
* @param specificId specificId
* @param specificId
specificId
*/
*/
void
deleteEquipDataByStockDetailId
(
@Param
(
"stockDetailId"
)
Long
stockDetailId
,
@Param
(
"specificId"
)
Long
specificId
);
void
deleteEquipDataByStockDetailId
(
@Param
(
"stockDetailId"
)
Long
stockDetailId
,
@Param
(
"specificId"
)
Long
specificId
);
/**
/**
* 获取雨淋阀室指标详情
* 获取雨淋阀室指标详情
*
* @return 指标详情
* @return 指标详情
*/
*/
List
<
Map
<
String
,
String
>>
getRainRoomIndexDetails
();
List
<
Map
<
String
,
String
>>
getRainRoomIndexDetails
();
/**
/**
* 消防管网指标详情
* 消防管网指标详情
*
* @return 指标详情
* @return 指标详情
*/
*/
List
<
Map
<
String
,
String
>>
getTropicsIndexDetails
();
List
<
Map
<
String
,
String
>>
getTropicsIndexDetails
();
/**
/**
* 选择阀室指标详情
* 选择阀室指标详情
*
* @return 指标详情
* @return 指标详情
*/
*/
List
<
Map
<
String
,
String
>>
getChoiceRoomIndexDetails
();
List
<
Map
<
String
,
String
>>
getChoiceRoomIndexDetails
();
/**
/**
* 消防炮伴热带指标详情
* 消防炮伴热带指标详情
*
* @return 指标详情
* @return 指标详情
*/
*/
List
<
Map
<
String
,
String
>>
getBoxTropicsIndexDetails
();
List
<
Map
<
String
,
String
>>
getBoxTropicsIndexDetails
();
...
@@ -234,6 +242,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -234,6 +242,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
/**
/**
* 统计数据
* 统计数据
*
* @return
* @return
*/
*/
List
<
Map
<
String
,
Object
>>
queryCompanyStaData
();
List
<
Map
<
String
,
Object
>>
queryCompanyStaData
();
...
@@ -241,21 +250,21 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -241,21 +250,21 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
Equipment
getEquipmentBySpecificId
(
@Param
(
"specificId"
)
Long
specificId
);
Equipment
getEquipmentBySpecificId
(
@Param
(
"specificId"
)
Long
specificId
);
/**
/**
*
* @param floorId 建筑id
* @param floorId 建筑id
* @param isIot 是否物联设备
* @param isIot
是否物联设备
* @return
* @return
*/
*/
List
<
EquiplistSpecificBySystemVO
>
getListByWarehouseStructureId
(
Long
floorId
,
Integer
isIot
);
List
<
EquiplistSpecificBySystemVO
>
getListByWarehouseStructureId
(
Long
floorId
,
Integer
isIot
);
List
<
Map
<
String
,
String
>>
getStationInfo
();
List
<
Map
<
String
,
String
>>
getStationInfo
();
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFireMonitorInfo
(
@Param
(
"equipmentId"
)
Long
fireEquipmentId
,
@Param
(
"list"
)
String
[]
strings
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfo
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getFirePumpInfoEQ
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getListByEquipmentCode
(
@Param
(
"list"
)
String
[]
strings
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
...
@@ -264,7 +273,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -264,7 +273,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
<
String
,
Object
>>
normalIndexInfoList
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
List
<
Map
<
String
,
Object
>>
normalIndexInfoList
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
);
Page
<
Map
<
String
,
Object
>>
normalIndexInfoListByPage
(
@Param
(
"Page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"name"
)
String
name
);
Page
<
Map
<
String
,
Object
>>
normalIndexInfoListByPage
(
@Param
(
"Page"
)
Page
<
Map
<
String
,
Object
>>
page
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"systemCode"
)
String
systemCode
,
@Param
(
"name"
)
String
name
);
Map
<
String
,
Object
>
getFireAutoSysInfo
();
Map
<
String
,
Object
>
getFireAutoSysInfo
();
...
@@ -280,11 +289,11 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -280,11 +289,11 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
Map
>
getWater
(
@Param
(
"id"
)
Long
id
);
List
<
Map
>
getWater
(
@Param
(
"id"
)
Long
id
);
Map
<
String
,
Object
>
getStationCode
(
@Param
(
"id"
)
Long
id
);
Map
<
String
,
Object
>
getStationCode
(
@Param
(
"id"
)
Long
id
);
EquipmentSpecific
getEquipSpecificEntityByCode
(
@Param
(
"code"
)
String
code
);
EquipmentSpecific
getEquipSpecificEntityByCode
(
@Param
(
"code"
)
String
code
);
Integer
updateEquipSpecificStatus
(
String
status
,
String
id
);
Integer
updateEquipSpecificStatus
(
String
status
,
String
id
);
String
getEquipStatusList
(
@Param
(
"id"
)
String
id
);
String
getEquipStatusList
(
@Param
(
"id"
)
String
id
);
...
@@ -298,15 +307,15 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -298,15 +307,15 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
String
updateEquipSpecificStatusByCheckInput
(
String
id
);
Page
<
Map
<
String
,
Object
>>
selectListByPatrolCheck
(
Page
<
Map
<
String
,
Object
>>
page
,
String
id
);
Page
<
Map
<
String
,
Object
>>
selectListByPatrolCheck
(
Page
<
Map
<
String
,
Object
>>
page
,
String
id
);
List
<
String
>
selectIdsByPatrolCheck
(
String
id
);
List
<
String
>
selectIdsByPatrolCheck
(
String
id
);
List
<
Map
<
String
,
Object
>>
queryCheckInputItemsByCheckId
(
@Param
(
value
=
"checkId"
)
String
checkId
);
List
<
Map
<
String
,
Object
>>
queryCheckInputItemsByCheckId
(
@Param
(
value
=
"checkId"
)
String
checkId
);
Map
<
String
,
Object
>
getPointById
(
@Param
(
value
=
"pointId"
)
Long
id
);
Map
<
String
,
Object
>
getPointById
(
@Param
(
value
=
"pointId"
)
Long
id
);
Map
<
String
,
Object
>
getPatrolData
(
@Param
(
value
=
"checkId"
)
Long
checkId
);
Map
<
String
,
Object
>
getPatrolData
(
@Param
(
value
=
"checkId"
)
Long
checkId
);
List
<
Map
<
String
,
Object
>>
getListByIds
(
@Param
(
"list"
)
String
[]
list
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getListByIds
(
@Param
(
"list"
)
String
[]
list
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
...
@@ -318,9 +327,9 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -318,9 +327,9 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
@Param
(
"useSource"
)
String
useSource
@Param
(
"useSource"
)
String
useSource
);
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getMonitoringCount
(
String
bizOrgCode
);
String
getEquipIdByCheckInputId
(
@Param
(
value
=
"id"
)
String
id
);
String
getEquipIdByCheckInputId
(
@Param
(
value
=
"id"
)
String
id
);
Map
<
String
,
Object
>
getMonitoringEquip
(
String
id
);
Map
<
String
,
Object
>
getMonitoringEquip
(
String
id
);
...
@@ -328,7 +337,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -328,7 +337,7 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
void
updateEquipQrCode
(
List
<
String
>
ids
,
String
status
);
void
updateEquipQrCode
(
List
<
String
>
ids
,
String
status
);
String
selectEquipRealtimeSignal
(
@Param
(
value
=
"id"
)
long
id
);
String
selectEquipRealtimeSignal
(
@Param
(
value
=
"id"
)
long
id
);
List
<
Map
<
String
,
Object
>>
getPatrolInfo
(
String
bizOrgCode
);
List
<
Map
<
String
,
Object
>>
getPatrolInfo
(
String
bizOrgCode
);
...
@@ -347,4 +356,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -347,4 +356,8 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
Integer
selectEquipmentCountBySystemId
(
@Param
(
"systemId"
)
Long
systemId
);
Integer
selectEquipmentCountBySystemId
(
@Param
(
"systemId"
)
Long
systemId
);
List
<
EquipTrendInfoVo
>
getEquipListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"indexKey"
)
String
indexKey
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
EquipTrendInfoVo
>
getEquipListByCode
(
@Param
(
"code"
)
String
code
,
@Param
(
"indexKey"
)
String
indexKey
,
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
EquipTrendInfoVo
>
getWaterList
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
String
>>
getIndexKeyByIotCode
(
@Param
(
"list"
)
Set
<
String
>
list
);
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/IEquipmentSpecificSerivce.java
View file @
9803ced7
...
@@ -334,4 +334,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -334,4 +334,6 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
EquipTrendResultVo
operatingTrendIot
(
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
equipCode
,
String
indexKey
);
EquipTrendResultVo
operatingTrendIot
(
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
equipCode
,
String
indexKey
);
EquipTrendResultVo
operatingTrendPressurePump
(
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
equipCode
,
String
indexKey
)
throws
ParseException
;
EquipTrendResultVo
operatingTrendPressurePump
(
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
equipCode
,
String
indexKey
)
throws
ParseException
;
EquipTrendResultVo
operatingTrendWater
(
String
startTime
,
String
endTime
,
String
bizOrgCode
)
throws
ParseException
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
9803ced7
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
9803ced7
...
@@ -3034,4 +3034,48 @@
...
@@ -3034,4 +3034,48 @@
GROUP BY
GROUP BY
a.id
a.id
</select>
</select>
<select
id=
"getWaterList"
resultType=
"com.yeejoin.equipmanage.common.entity.vo.EquipTrendInfoVo"
>
SELECT
a.sequence_nbr AS id,
a.`name` AS `name`,
GROUP_CONCAT( c.iot_code ) AS iotCode,
b.min_water_level AS minNum,
b.max_water_level AS maxNum,
'液位(M)' AS unit
FROM
`cb_water_resource` AS a
LEFT JOIN cb_water_resource_pool b ON a.sequence_nbr = b.resource_id
LEFT JOIN wl_equipment_specific c ON FIND_IN_SET( c.id, b.level_device_id )
WHERE
b.level_device_id IS NOT NULL
AND b.level_device_id != ''
AND a.resource_type IN ( 'pool', 'industryPool' )
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND a.biz_org_code LIKE concat(#{bizOrgCode}, '%')
</if>
GROUP BY
a.sequence_nbr
HAVING
iotCode IS NOT NULL
AND iotCode != ''
</select>
<select
id=
"getIndexKeyByIotCode"
resultType=
"java.util.Map"
>
SELECT
a.iot_code as iotCode,
max(case when b.type_code = 'LiquidLevel' then equipment_index_key end) as indexKey
FROM
wl_equipment_specific a
LEFT JOIN wl_equipment_specific_index b ON a.id = b.equipment_specific_id
WHERE
a.iot_code
IN
<foreach
item=
"item"
collection=
"list"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
</foreach>
GROUP BY
a.iot_code
</select>
</mapper>
</mapper>
\ 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