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
872b26ac
Commit
872b26ac
authored
Nov 27, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改数据单位转化系数
parent
27bd00be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+5
-5
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+3
-1
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 @
872b26ac
...
...
@@ -75,7 +75,7 @@ public class JpStationController extends BaseController {
private
static
String
ZX
=
"在线"
;
private
static
String
LX
=
"离线"
;
private
static
String
BJ
=
"报警"
;
private
static
int
FDXSS
=
1000
;
/**
* 新增第三方场站
*
...
...
@@ -492,13 +492,13 @@ public class JpStationController extends BaseController {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"0.00"
);
//炭
map
.
put
(
"carbon"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
CARBON
));
map
.
put
(
"carbon"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
FDXSS
*
CARBON
));
//硫
map
.
put
(
"sulfur"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
SULFUR
));
map
.
put
(
"sulfur"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
FDXSS
*
SULFUR
));
//粉尘
map
.
put
(
"dust"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
DUST
));
map
.
put
(
"dust"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
FDXSS
*
DUST
));
//煤
map
.
put
(
"coal"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
COAL
));
map
.
put
(
"coal"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
FDXSS
*
COAL
));
itemList
.
add
(
map
);
result
.
setCurrent
(
1
);
result
.
setTotal
(
1
);
...
...
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 @
872b26ac
...
...
@@ -60,6 +60,8 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
@Autowired
YearGenerateMapper
yearGenerateMapper
;
private
static
double
FDL
=
0.0001
;
/**
* 分页查询
*/
...
...
@@ -229,7 +231,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
for
(
int
i
=
0
;
i
<
listx
.
size
();
i
++)
{
if
(
datum
.
getDate
().
equals
(
listx
.
get
(
i
).
toString
())){
listy
.
remove
(
i
);
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"0.000"
).
format
(
datum
.
getNum
()):
null
;
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"0.000"
).
format
(
datum
.
getNum
()
*
FDL
):
null
;
listy
.
add
(
i
,
format
);
break
;
}
...
...
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