Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fangyeqing
/
xkl-interface
·
Commits
Go to a project
GitLab
Go to dashboard
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
zhaoyue
7 years ago
Commit
6a88064bac9923b6d5b9a35b447c7ab28ba5f76b
1 parent
d28ac2b9
Mod set default as -1 for没有传上来值的item
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
src/main/java/com/xkl/service/ReportService.java
src/main/java/com/xkl/service/ReportService.java
View file @
6a88064
...
...
@@ -204,7 +204,13 @@ public class ReportService implements IReportService {
*/
JSONObject
rpDetails
=
rpJson
.
getJSONObject
(
"detail"
);
for
(
int
item_id
=
1
;
item_id
<=
125
;
item_id
++)
{
float
val
=
rpDetails
.
getFloat
(
String
.
valueOf
(
item_id
)).
floatValue
();
float
val
;
try
{
val
=
rpDetails
.
getFloat
(
String
.
valueOf
(
item_id
)).
floatValue
();
}
catch
(
Exception
e
)
{
val
=
-
1
f
;
log
.
info
(
"WARNING, lose one item value and set "
+
item_id
+
" as defalut -1!!! "
+
e
);
}
XklAmpReportDetailEntity
detail
=
new
XklAmpReportDetailEntity
();
detail
.
setItemValue
(
val
);
detail
.
setItemId
(
item_id
);
...
...
Please
register
or
login
to post a comment