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
5a983b74
Commit
5a983b74
authored
Sep 20, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30546 运行趋势页签接口开发
parent
b9ae6138
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
3 deletions
+27
-3
SupervisionConfigureController.java
...quipmanage/controller/SupervisionConfigureController.java
+4
-2
EquipmentSpecificMapper.java
...m/yeejoin/equipmanage/mapper/EquipmentSpecificMapper.java
+2
-0
IEquipmentSpecificSerivce.java
...eejoin/equipmanage/service/IEquipmentSpecificSerivce.java
+1
-1
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+0
-0
EquipmentSpecificMapper.xml
...uip/src/main/resources/mapper/EquipmentSpecificMapper.xml
+20
-0
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/SupervisionConfigureController.java
View file @
5a983b74
...
@@ -880,7 +880,9 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -880,7 +880,9 @@ public class SupervisionConfigureController extends AbstractBaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备平台运行趋势 水池液位趋势API"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"设备平台运行趋势 水池液位趋势API"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备平台运行趋势 水池液位趋势API"
,
produces
=
"application/json;charset=UTF-8"
,
notes
=
"设备平台运行趋势 水池液位趋势API"
)
public
ResponseModel
operatingTrendWater
(
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
public
ResponseModel
operatingTrendWater
(
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
,
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
)
throws
ParseException
{
@RequestParam
(
value
=
"bizOrgCode"
,
required
=
false
)
String
bizOrgCode
,
@RequestParam
(
value
=
"equipCode"
,
required
=
false
)
String
equipCode
,
@RequestParam
(
value
=
"indexKey"
,
required
=
false
)
String
indexKey
)
throws
ParseException
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
if
(
ObjectUtils
.
isEmpty
(
bizOrgCode
))
{
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
reginParams
=
getSelectedOrgInfo
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
ReginParams
.
PersonIdentity
personIdentity
=
reginParams
.
getPersonIdentity
();
...
@@ -891,7 +893,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
...
@@ -891,7 +893,7 @@ public class SupervisionConfigureController extends AbstractBaseController {
}
}
}
}
}
}
EquipTrendResultVo
equipTrendResultVo
=
equipmentSpecificService
.
operatingTrendWater
(
startTime
,
endTime
,
bizOrgCode
);
EquipTrendResultVo
equipTrendResultVo
=
equipmentSpecificService
.
operatingTrendWater
(
startTime
,
endTime
,
bizOrgCode
,
equipCode
,
indexKey
);
return
CommonResponseUtil
.
success
(
equipTrendResultVo
);
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 @
5a983b74
...
@@ -360,4 +360,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
...
@@ -360,4 +360,6 @@ public interface EquipmentSpecificMapper extends BaseMapper<EquipmentSpecific> {
List
<
EquipTrendInfoVo
>
getWaterList
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
EquipTrendInfoVo
>
getWaterList
(
@Param
(
"bizOrgCode"
)
String
bizOrgCode
);
List
<
Map
<
String
,
String
>>
getIndexKeyByIotCode
(
@Param
(
"list"
)
Set
<
String
>
list
);
List
<
Map
<
String
,
String
>>
getIndexKeyByIotCode
(
@Param
(
"list"
)
Set
<
String
>
list
);
List
<
Map
<
String
,
String
>>
getIndexKeyByIotCodeWaterTank
(
@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 @
5a983b74
...
@@ -335,5 +335,5 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
...
@@ -335,5 +335,5 @@ public interface IEquipmentSpecificSerivce extends IService<EquipmentSpecific> {
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
;
EquipTrendResultVo
operatingTrendWater
(
String
startTime
,
String
endTime
,
String
bizOrgCode
,
String
equipCode
,
String
indexKey
)
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 @
5a983b74
This diff is collapsed.
Click to expand it.
amos-boot-system-equip/src/main/resources/mapper/EquipmentSpecificMapper.xml
View file @
5a983b74
...
@@ -3078,4 +3078,23 @@
...
@@ -3078,4 +3078,23 @@
GROUP BY
GROUP BY
a.iot_code
a.iot_code
</select>
</select>
<select
id=
"getIndexKeyByIotCodeWaterTank"
resultType=
"java.util.Map"
>
SELECT
a.iot_code AS iotCode,
GROUP_CONCAT( b.equipment_index_key ) AS indexKey
FROM
wl_equipment_specific a
LEFT JOIN ( SELECT * FROM wl_equipment_specific_index WHERE type_code = 'LiquidLevel' ) 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
HAVING
indexKey IS NOT NULL
AND indexKey != ''
</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