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
62e4bc37
Commit
62e4bc37
authored
Sep 27, 2023
by
xixinzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决查询预警记录报错
parent
515f43ee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
EquipInformationCardController.java
...quipmanage/controller/EquipInformationCardController.java
+9
-6
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-equip-biz/src/main/java/com/yeejoin/equipmanage/controller/EquipInformationCardController.java
View file @
62e4bc37
...
...
@@ -20,6 +20,7 @@ import io.swagger.annotations.ApiOperation;
import
lombok.extern.slf4j.Slf4j
;
import
org.checkerframework.checker.units.qual.A
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
...
...
@@ -117,15 +118,17 @@ public class EquipInformationCardController {
});
String
cs
=
""
;
JSONArray
list
=
record
.
getJSONArray
(
"rectificationProposal"
);
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
if
(
i
!=
(
list
.
size
()
-
1
)){
cs
+=
list
.
getJSONObject
(
i
).
getString
(
"measuresDesc"
)+
","
;
}
else
{
cs
+=
list
.
getJSONObject
(
i
).
getString
(
"measuresDesc"
);
//TODO 赋码记录业务迁移到了idx,先解决报错,后续移到idx服务
if
(!
CollectionUtils
.
isEmpty
(
list
))
{
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++)
{
if
(
i
!=
(
list
.
size
()
-
1
)){
cs
+=
list
.
getJSONObject
(
i
).
getString
(
"measuresDesc"
)+
","
;
}
else
{
cs
+=
list
.
getJSONObject
(
i
).
getString
(
"measuresDesc"
);
}
}
}
record
.
put
(
"measure"
,
cs
);
});
HashMap
<
String
,
Object
>
map
=
new
HashMap
<>();
...
...
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