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
6a32eb52
Commit
6a32eb52
authored
Sep 27, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交历史发电量问题
parent
18fb01a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
LargeScreenImpl.java
...s/boot/module/jxiop/biz/service/impl/LargeScreenImpl.java
+4
-4
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 @
6a32eb52
...
@@ -274,7 +274,7 @@ public class LargeScreenImpl {
...
@@ -274,7 +274,7 @@ public class LargeScreenImpl {
//全国发电趋势
//全国发电趋势
@Scheduled
(
cron
=
"0/1
0 * * * * ?
"
)
@Scheduled
(
cron
=
"0/1
* * * * ?
"
)
public
SeriesData
getSeriesDataqg
(){
public
SeriesData
getSeriesDataqg
(){
//获取今年当月 日发电趋势
//获取今年当月 日发电趋势
...
@@ -289,8 +289,8 @@ public class LargeScreenImpl {
...
@@ -289,8 +289,8 @@ public class LargeScreenImpl {
mapjn
.
put
(
"data"
,
listjn
);
mapjn
.
put
(
"data"
,
listjn
);
mapjn
.
put
(
"name"
,
"当前值"
);
mapjn
.
put
(
"name"
,
"当前值"
);
Map
<
String
,
Object
>
mapqn
=
new
HashMap
<>();
Map
<
String
,
Object
>
mapqn
=
new
HashMap
<>();
map
j
n
.
put
(
"data"
,
listqn
);
map
q
n
.
put
(
"data"
,
listqn
);
map
j
n
.
put
(
"name"
,
"同期值"
);
map
q
n
.
put
(
"name"
,
"同期值"
);
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
list
.
add
(
mapjn
);
list
.
add
(
mapjn
);
...
@@ -489,7 +489,7 @@ public class LargeScreenImpl {
...
@@ -489,7 +489,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