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
82a9b4ab
Commit
82a9b4ab
authored
Sep 25, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决默认值
parent
748dde8c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
5 deletions
+17
-5
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+1
-1
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+2
-2
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+14
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
82a9b4ab
...
@@ -158,7 +158,7 @@ public class JpStationController extends BaseController {
...
@@ -158,7 +158,7 @@ public class JpStationController extends BaseController {
collector
.
put
(
"zx"
,
0
);
collector
.
put
(
"zx"
,
0
);
collector
.
put
(
"bj"
,
0
);
collector
.
put
(
"bj"
,
0
);
collector
.
put
(
"lx"
,
0
);
collector
.
put
(
"lx"
,
0
);
if
(
list
!=
null
&&
list
.
isEmpty
()){
if
(
list
!=
null
&&
!
list
.
isEmpty
()){
for
(
Map
<
String
,
Object
>
map
:
list
)
{
for
(
Map
<
String
,
Object
>
map
:
list
)
{
if
(
"在线"
.
equals
(
map
.
get
(
"state"
).
toString
())){
if
(
"在线"
.
equals
(
map
.
get
(
"state"
).
toString
())){
collector
.
put
(
"zx"
,
Integer
.
valueOf
(
map
.
get
(
"num"
).
toString
()));
collector
.
put
(
"zx"
,
Integer
.
valueOf
(
map
.
get
(
"num"
).
toString
()));
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
82a9b4ab
...
@@ -205,9 +205,9 @@ public class TdHygfJpInverterWarnController extends BaseController {
...
@@ -205,9 +205,9 @@ public class TdHygfJpInverterWarnController extends BaseController {
if
(
datalist
!=
null
&&!
datalist
.
isEmpty
()){
if
(
datalist
!=
null
&&!
datalist
.
isEmpty
()){
for
(
Map
<
String
,
Object
>
map
:
datalist
)
{
for
(
Map
<
String
,
Object
>
map
:
datalist
)
{
if
(
"未处理"
.
equals
(
map
.
get
(
"state"
).
toString
())){
if
(
"未处理"
.
equals
(
map
.
get
(
"state"
).
toString
())){
collector
.
put
(
"wcl"
,
map
.
get
(
"num"
));
collector
.
put
(
"wcl"
,
Integer
.
valueOf
(
map
.
get
(
"num"
).
toString
()
));
}
else
if
(
"已处理"
.
equals
(
map
.
get
(
"state"
).
toString
())||
"已恢复"
.
equals
(
map
.
get
(
"state"
).
toString
())){
}
else
if
(
"已处理"
.
equals
(
map
.
get
(
"state"
).
toString
())||
"已恢复"
.
equals
(
map
.
get
(
"state"
).
toString
())){
collector
.
put
(
"ycl"
,
map
.
get
(
"num"
));
collector
.
put
(
"ycl"
,
Integer
.
valueOf
(
map
.
get
(
"num"
).
toString
()
));
}
}
}
}
}
}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/JpStationServiceImpl.java
View file @
82a9b4ab
...
@@ -128,7 +128,13 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -128,7 +128,13 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
int
month
=
aCalendar
.
get
(
Calendar
.
MONTH
)
+
1
;
//月份
int
month
=
aCalendar
.
get
(
Calendar
.
MONTH
)
+
1
;
//月份
int
day
=
aCalendar
.
getActualMaximum
(
Calendar
.
DATE
);
int
day
=
aCalendar
.
getActualMaximum
(
Calendar
.
DATE
);
for
(
int
i
=
1
;
i
<=
day
;
i
++)
{
for
(
int
i
=
1
;
i
<=
day
;
i
++)
{
String
aDate
=
month
+
"-"
+
i
;
String
aDate
=
null
;
if
(
i
<
10
){
aDate
=
date
+
"-0"
+
i
;
}
else
{
aDate
=
date
+
"-"
+
i
;
}
listx
.
add
(
aDate
);
listx
.
add
(
aDate
);
listy
.
add
(
0
);
listy
.
add
(
0
);
}
}
...
@@ -145,7 +151,13 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
...
@@ -145,7 +151,13 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
List
<
Object
>
listx
=
new
ArrayList
<>();
List
<
Object
>
listx
=
new
ArrayList
<>();
List
<
Object
>
listy
=
new
ArrayList
<>();
List
<
Object
>
listy
=
new
ArrayList
<>();
for
(
int
i
=
1
;
i
<=
12
;
i
++)
{
for
(
int
i
=
1
;
i
<=
12
;
i
++)
{
String
aDate
=
date
+
"-"
+
i
;
String
aDate
=
null
;
if
(
i
<
10
){
aDate
=
date
+
"-0"
+
i
;
}
else
{
aDate
=
date
+
"-"
+
i
;
}
listx
.
add
(
aDate
);
listx
.
add
(
aDate
);
listy
.
add
(
0
);
listy
.
add
(
0
);
}
}
...
...
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