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
046a97fb
Commit
046a97fb
authored
Sep 19, 2024
by
张森
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
30546 运行趋势页签接口开发bug
parent
1344bc5d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
7 deletions
+48
-7
EquipTrendResultVo.java
...join/equipmanage/common/entity/vo/EquipTrendResultVo.java
+40
-1
EquipmentSpecificSerivceImpl.java
...quipmanage/service/impl/EquipmentSpecificSerivceImpl.java
+8
-6
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 @
046a97fb
...
@@ -4,11 +4,50 @@ import lombok.Data;
...
@@ -4,11 +4,50 @@ import lombok.Data;
import
java.util.List
;
import
java.util.List
;
@Data
public
class
EquipTrendResultVo
{
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
<
String
>>
yAxisData
;
private
List
<
List
<
String
>>
threshold
;
private
List
<
List
<
String
>>
threshold
;
public
List
<
String
>
getLegends
()
{
return
legends
;
}
public
void
setLegends
(
List
<
String
>
legends
)
{
this
.
legends
=
legends
;
}
public
String
getyAxisName
()
{
return
yAxisName
;
}
public
void
setyAxisName
(
String
yAxisName
)
{
this
.
yAxisName
=
yAxisName
;
}
public
List
<
String
>
getxAxisData
()
{
return
xAxisData
;
}
public
void
setxAxisData
(
List
<
String
>
xAxisData
)
{
this
.
xAxisData
=
xAxisData
;
}
public
List
<
List
<
String
>>
getyAxisData
()
{
return
yAxisData
;
}
public
void
setyAxisData
(
List
<
List
<
String
>>
yAxisData
)
{
this
.
yAxisData
=
yAxisData
;
}
public
List
<
List
<
String
>>
getThreshold
()
{
return
threshold
;
}
public
void
setThreshold
(
List
<
List
<
String
>>
threshold
)
{
this
.
threshold
=
threshold
;
}
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EquipmentSpecificSerivceImpl.java
View file @
046a97fb
...
@@ -2280,7 +2280,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2280,7 +2280,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
maxMinInfo
.
add
(
equipInfo
.
getMaxNum
());
maxMinInfo
.
add
(
equipInfo
.
getMaxNum
());
threshold
.
add
(
maxMinInfo
);
threshold
.
add
(
maxMinInfo
);
legends
.
add
(
equipInfo
.
getName
());
legends
.
add
(
equipInfo
.
getName
());
equipTrendResultVo
.
set
Y
AxisName
(
equipInfo
.
getUnit
());
equipTrendResultVo
.
set
y
AxisName
(
equipInfo
.
getUnit
());
//iot数据查询组装
//iot数据查询组装
String
prefix
=
null
;
String
prefix
=
null
;
...
@@ -2337,9 +2337,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2337,9 +2337,9 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
}
}
yaxisList
.
add
(
values
);
yaxisList
.
add
(
values
);
equipTrendResultVo
.
set
X
AxisData
(
allTimeListNew
);
equipTrendResultVo
.
set
x
AxisData
(
allTimeListNew
);
}
}
equipTrendResultVo
.
set
Y
AxisData
(
yaxisList
);
equipTrendResultVo
.
set
y
AxisData
(
yaxisList
);
return
equipTrendResultVo
;
return
equipTrendResultVo
;
}
}
...
@@ -2369,7 +2369,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2369,7 +2369,7 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
maxMinInfo
.
add
(
equipInfo
.
getMaxNum
());
maxMinInfo
.
add
(
equipInfo
.
getMaxNum
());
threshold
.
add
(
maxMinInfo
);
threshold
.
add
(
maxMinInfo
);
legends
.
add
(
equipInfo
.
getName
());
legends
.
add
(
equipInfo
.
getName
());
equipTrendResultVo
.
set
Y
AxisName
(
equipInfo
.
getUnit
());
equipTrendResultVo
.
set
y
AxisName
(
equipInfo
.
getUnit
());
//iot数据查询组装
//iot数据查询组装
String
prefix
=
null
;
String
prefix
=
null
;
...
@@ -2394,15 +2394,17 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
...
@@ -2394,15 +2394,17 @@ public class EquipmentSpecificSerivceImpl extends ServiceImpl<EquipmentSpecificM
if
(
mapList
.
containsKey
(
indexKey
))
{
if
(
mapList
.
containsKey
(
indexKey
))
{
long
countNum
=
allTimeList
.
stream
().
filter
(
item
->
mapList
.
get
(
"time"
).
contains
(
item
)).
count
();
long
countNum
=
allTimeList
.
stream
().
filter
(
item
->
mapList
.
get
(
"time"
).
contains
(
item
)).
count
();
values
.
add
(
String
.
valueOf
(
countNum
));
values
.
add
(
String
.
valueOf
(
countNum
));
}
else
{
values
.
add
(
"0"
);
}
}
}
}
yaxisList
.
add
(
values
);
yaxisList
.
add
(
values
);
}
}
}
}
equipTrendResultVo
.
set
X
AxisData
(
allTimeList
);
equipTrendResultVo
.
set
x
AxisData
(
allTimeList
);
equipTrendResultVo
.
setLegends
(
legends
);
equipTrendResultVo
.
setLegends
(
legends
);
equipTrendResultVo
.
setThreshold
(
threshold
);
equipTrendResultVo
.
setThreshold
(
threshold
);
equipTrendResultVo
.
set
Y
AxisData
(
yaxisList
);
equipTrendResultVo
.
set
y
AxisData
(
yaxisList
);
return
equipTrendResultVo
;
return
equipTrendResultVo
;
}
}
...
...
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