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
037212d2
Commit
037212d2
authored
Feb 02, 2023
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:稳压泵启停状态图接口剔除iotCode为空
parent
28465f81
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
EmergencyServiceImpl.java
...eejoin/equipmanage/service/impl/EmergencyServiceImpl.java
+5
-7
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/service/impl/EmergencyServiceImpl.java
View file @
037212d2
...
...
@@ -220,15 +220,12 @@ public class EmergencyServiceImpl implements IEmergencyService {
List
<
Integer
>
yList
=
new
ArrayList
<>();
String
name
=
x
.
get
(
"name"
).
toString
();
yMap
.
put
(
"name"
,
name
);
String
iotCode
=
x
.
get
(
"iotCode"
).
toString
(
);
Object
iotCode
=
x
.
get
(
"iotCode"
);
String
prefix
=
null
;
String
suffix
=
null
;
if
(
iotCode
.
length
()
>
8
)
{
prefix
=
iotCode
.
substring
(
0
,
8
);
suffix
=
iotCode
.
substring
(
8
);
}
else
{
throw
new
BadRequest
(
"装备物联编码错误,请确认!"
);
}
if
(
x
.
get
(
"iotCode"
)
!=
null
&&
iotCode
.
toString
().
length
()
>
8
)
{
prefix
=
iotCode
.
toString
().
substring
(
0
,
8
);
suffix
=
iotCode
.
toString
().
substring
(
8
);
ResponseModel
responseModel
=
null
;
try
{
responseModel
=
iotFeign
.
selectList
(
appKey
,
product
,
token
,
startTime
,
endTime
,
prefix
,
suffix
,
fieldKey
);
...
...
@@ -258,6 +255,7 @@ public class EmergencyServiceImpl implements IEmergencyService {
}
yMap
.
put
(
"data"
,
yList
);
yData
.
add
(
yMap
);
}
});
map
.
put
(
"xData"
,
timeList
);
map
.
put
(
"yData"
,
yData
);
...
...
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