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
59ef65e7
Commit
59ef65e7
authored
Jul 05, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口
parent
f3215d30
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
15 deletions
+4
-15
MonitorFanIndicator.java
...mos/boot/module/jxiop/api/entity/MonitorFanIndicator.java
+2
-2
MonitorFanIndicatorMapper.java
...ot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
+2
-3
MonitorFanIndicatorMapper.xml
...i/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
+0
-10
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/entity/MonitorFanIndicator.java
View file @
59ef65e7
...
...
@@ -42,9 +42,9 @@ public class MonitorFanIndicator extends BaseEntity {
@TableField
(
"index_address"
)
private
String
indexAddress
;
// 指标地址
@TableField
(
"address_gateway"
)
private
String
addressGateway
;
//
指标地址
private
String
addressGateway
;
//
地址加网管
@TableField
(
"equipment_number"
)
private
String
equipmentNumber
;
private
String
equipmentNumber
;
//设备编号
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/java/com/yeejoin/amos/boot/module/jxiop/api/mapper/MonitorFanIndicatorMapper.java
View file @
59ef65e7
...
...
@@ -28,7 +28,7 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
@Param
(
"gateway"
)
String
gateway
,
@Param
(
"frontModule"
)
String
frontModule
,
@Param
(
"offset"
)
int
offset
);
Object
getIndicatoralueAvage
(
String
gateway
,
String
indicator
);
Object
getIndicatoralueAvage
(
String
gateway
,
String
indicator
);
List
<
RunRecord
>
queryRunRecord
(
@Param
(
"size"
)
long
size
,
@Param
(
"list"
)
String
[]
list
,
...
...
@@ -36,7 +36,6 @@ public interface MonitorFanIndicatorMapper extends BaseMapper<MonitorFanIndicato
int
queryRunRecordTotal
(
@Param
(
"list"
)
String
[]
list
);
Object
getIndicatoralueTotal
(
String
gateway
,
String
indicator
);
Object
getIndicatoralueTotal
(
String
gateway
,
String
indicator
);
}
amos-boot-system-jxiop/amos-boot-module-jxiop-api/src/main/resources/mapper/MonitorFanIndicatorMapper.xml
View file @
59ef65e7
...
...
@@ -73,14 +73,7 @@
indicator like concat('%',#{indicator},'%')
</select>
<select
id=
"queryRunRecord"
resultType=
"com.yeejoin.amos.boot.module.jxiop.api.dto.RunRecord"
>
SELECT
t.equipment_number AS FanName,
(SELECT indicator_value FROM monitor_fan_indicator WHERE equipment_number=t.equipment_number AND gateway=t.gateway and indicator="有功功率") AS 'power',
...
...
@@ -94,21 +87,18 @@
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
ORDER BY a.equipment_number ) AS t
limit #{offset}, #{size}
</select>
<select
id=
"queryRunRecordTotal"
resultType=
"java.lang.Integer"
>
select
count(DISTINCT a.equipment_number) num
from monitor_fan_indicator a where a.equipment_number is not null and a.gateway in
<foreach
collection=
"list"
index=
"index"
item=
"item"
separator=
","
open=
"("
close=
")"
>
#{item}
</foreach>
</select>
...
...
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