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
8348a473
Commit
8348a473
authored
Sep 28, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
077f636e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+8
-8
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 @
8348a473
...
@@ -374,12 +374,12 @@ public class LargeScreenImpl {
...
@@ -374,12 +374,12 @@ public class LargeScreenImpl {
List
<
String
>
value
=
new
ArrayList
<>();
List
<
String
>
value
=
new
ArrayList
<>();
value
.
add
(
RSD
);
value
.
add
(
RSD
);
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
map
.
put
(
"equipmentIndexName
.keyword
"
,
value
);
map
.
put
(
"equipmentIndexName"
,
value
);
List
<
String
>
value1
=
new
ArrayList
<>();
List
<
String
>
value1
=
new
ArrayList
<>();
value1
.
add
(
monthy
);
value1
.
add
(
monthy
);
map
.
put
(
"moon
.keyword
"
,
value1
);
map
.
put
(
"moon"
,
value1
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupsum
(
map
,
"value"
,
"day
.keyword
"
,
ESDailyPowerGeneration
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupsum
(
map
,
"value"
,
"day"
,
ESDailyPowerGeneration
.
class
);
Map
<
String
,
Double
>
mapdta
=
new
HashMap
<>();
Map
<
String
,
Double
>
mapdta
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
...
@@ -422,13 +422,13 @@ public class LargeScreenImpl {
...
@@ -422,13 +422,13 @@ public class LargeScreenImpl {
List
<
String
>
value
=
new
ArrayList
<>();
List
<
String
>
value
=
new
ArrayList
<>();
value
.
add
(
RSD
);
value
.
add
(
RSD
);
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
Map
<
String
,
List
<
String
>>
map
=
new
HashMap
<>();
map
.
put
(
"equipmentIndexName
.keyword
"
,
value
);
map
.
put
(
"equipmentIndexName"
,
value
);
map
.
put
(
"gatewayId
.keyword
"
,
gatewayId
);
map
.
put
(
"gatewayId"
,
gatewayId
);
List
<
String
>
value1
=
new
ArrayList
<>();
List
<
String
>
value1
=
new
ArrayList
<>();
value1
.
add
(
monthy
);
value1
.
add
(
monthy
);
map
.
put
(
"moon
.keyword
"
,
value1
);
map
.
put
(
"moon"
,
value1
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupsum
(
map
,
"valueDouble"
,
"day
.keyword"
,
ESEquipments
.
class
);
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupsum
(
map
,
"valueDouble"
,
"day
"
,
ESDailyPowerGeneration
.
class
);
Map
<
String
,
Double
>
mapdta
=
new
HashMap
<>();
Map
<
String
,
Double
>
mapdta
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"#.0000"
);
...
@@ -472,7 +472,7 @@ public class LargeScreenImpl {
...
@@ -472,7 +472,7 @@ public class LargeScreenImpl {
Calendar
cal
=
Calendar
.
getInstance
();
Calendar
cal
=
Calendar
.
getInstance
();
cal
.
setTime
(
month
);
//month 为指定月份任意日期
cal
.
setTime
(
month
);
//month 为指定月份任意日期
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
int
year
=
cal
.
get
(
Calendar
.
YEAR
);
int
m
=
cal
.
get
(
Calendar
.
MONTH
);
int
m
=
cal
.
get
(
Calendar
.
MONTH
)
+
1
;
int
dayNumOfMonth
=
DateUtil
.
getDaysByYearMonth
(
year
,
m
);
int
dayNumOfMonth
=
DateUtil
.
getDaysByYearMonth
(
year
,
m
);
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
// 从一号开始
cal
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
// 从一号开始
...
...
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