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
14d16bea
Commit
14d16bea
authored
Sep 06, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
监盘大屏 - 区域 接入数据报错
parent
7330d8d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+3
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-bigscreen-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
View file @
14d16bea
...
@@ -246,7 +246,7 @@ public class LargeScreenImpl {
...
@@ -246,7 +246,7 @@ public class LargeScreenImpl {
int
month
=
currentDate
.
getMonthValue
();
int
month
=
currentDate
.
getMonthValue
();
QueryWrapper
<
StationPlan
>
wrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
StationPlan
>
wrapper
=
new
QueryWrapper
<>();
wrapper
.
select
(
"
sum(value
) as sum_value"
);
wrapper
.
select
(
"
ifnull(sum(value), 0
) as sum_value"
);
wrapper
.
eq
(
"monthly"
,
month
);
wrapper
.
eq
(
"monthly"
,
month
);
List
<
Map
<
String
,
Object
>>
list
=
StationPlanMapper
.
selectMaps
(
wrapper
);
List
<
Map
<
String
,
Object
>>
list
=
StationPlanMapper
.
selectMaps
(
wrapper
);
Double
sumValue
=
list
!=
null
&&
!
list
.
isEmpty
()
?
(
Double
)
list
.
get
(
0
).
get
(
"sum_value"
)
:
0
;
Double
sumValue
=
list
!=
null
&&
!
list
.
isEmpty
()
?
(
Double
)
list
.
get
(
0
).
get
(
"sum_value"
)
:
0
;
...
@@ -256,8 +256,8 @@ public class LargeScreenImpl {
...
@@ -256,8 +256,8 @@ public class LargeScreenImpl {
mapdta
.
put
(
"YJHWC"
,
ybfb
);
mapdta
.
put
(
"YJHWC"
,
ybfb
);
QueryWrapper
<
StationPlan
>
wrapper1
=
new
QueryWrapper
<>();
QueryWrapper
<
StationPlan
>
wrapper1
=
new
QueryWrapper
<>();
wrapper1
.
select
(
"
sum(value
) as sum_value"
);
wrapper1
.
select
(
"
ifnull(sum(value), 0
) as sum_value"
);
List
<
Map
<
String
,
Object
>>
list1
=
StationPlanMapper
.
selectMaps
(
wrapper
);
List
<
Map
<
String
,
Object
>>
list1
=
StationPlanMapper
.
selectMaps
(
wrapper
1
);
Double
sumValuen
=
list1
!=
null
&&
!
list1
.
isEmpty
()
?
(
Double
)
list1
.
get
(
0
).
get
(
"sum_value"
)
:
0
;
Double
sumValuen
=
list1
!=
null
&&
!
list1
.
isEmpty
()
?
(
Double
)
list1
.
get
(
0
).
get
(
"sum_value"
)
:
0
;
Double
ybfbn
=
sumValuen
>
0
?
mapdta
.
get
(
"NFD"
)
/
sumValue
*
100
:
0
;
Double
ybfbn
=
sumValuen
>
0
?
mapdta
.
get
(
"NFD"
)
/
sumValue
*
100
:
0
;
ybfbn
=
new
BigDecimal
(
ybfbn
).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
ybfbn
=
new
BigDecimal
(
ybfbn
).
setScale
(
4
,
BigDecimal
.
ROUND_HALF_UP
).
doubleValue
();
...
...
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