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
4ceb83e7
Commit
4ceb83e7
authored
Nov 20, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监盘发电量接口
parent
46426f53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+9
-9
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 @
4ceb83e7
...
...
@@ -481,8 +481,8 @@ public class JpStationController extends BaseController {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"0.00"
);
//炭
map
.
put
(
"name1"
,
"实时功率"
);
map
.
put
(
"name2"
,
"组件总容量"
);
map
.
put
(
"name1"
,
"实时功率
(kW)
"
);
map
.
put
(
"name2"
,
"组件总容量
(MWp)
"
);
map
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getRealTimePower
()));
//硫
...
...
@@ -490,31 +490,31 @@ public class JpStationController extends BaseController {
Map
<
String
,
Object
>
map2
=
new
HashMap
<>();
map2
.
put
(
"name1"
,
"当日电量"
);
map2
.
put
(
"name2"
,
"当日收益"
);
map2
.
put
(
"name1"
,
"当日电量
(kWh)
"
);
map2
.
put
(
"name2"
,
"当日收益
(元)
"
);
//炭
map2
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getDayGenerate
()));
//硫
map2
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getDayIncome
()));
Map
<
String
,
Object
>
map3
=
new
HashMap
<>();
map3
.
put
(
"name1"
,
"当月电量"
);
map3
.
put
(
"name2"
,
"当月收益"
);
map3
.
put
(
"name1"
,
"当月电量
(MWh)
"
);
map3
.
put
(
"name2"
,
"当月收益
(万元)
"
);
//炭
map3
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getMonthGenerate
()));
//硫
map3
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getMonthIncome
()));
Map
<
String
,
Object
>
map4
=
new
HashMap
<>();
map4
.
put
(
"name1"
,
"累计电量"
);
map4
.
put
(
"name2"
,
"累计收益"
);
map4
.
put
(
"name1"
,
"累计电量
(MWh)
"
);
map4
.
put
(
"name2"
,
"累计收益
(万元)
"
);
//炭
map4
.
put
(
"value1"
,
format2
.
format
(
jpStation
.
getYearGenerate
()));
//硫
map4
.
put
(
"value2"
,
format2
.
format
(
jpStation
.
getYearIncome
()));
date
.
add
(
map
);
date
.
add
(
map4
);
date
.
add
(
map2
);
date
.
add
(
map3
);
date
.
add
(
map4
);
Page
<
Map
<
String
,
Object
>>
page
=
new
Page
<>(
1
,
4
);
page
.
setRecords
(
date
);
return
ResponseHelper
.
buildResponse
(
page
);
...
...
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