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
9f2e91ca
Commit
9f2e91ca
authored
Nov 17, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改小数位数
parent
1582b087
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+2
-2
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+3
-3
IdxBizPvHealthIndexController.java
...e/jxiop/biz/controller/IdxBizPvHealthIndexController.java
+1
-1
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+1
-1
DemoController.java
...amos/boot/module/jxiop/biz/controller/DemoController.java
+2
-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 @
9f2e91ca
...
...
@@ -449,7 +449,7 @@ public class JpStationController extends BaseController {
List
<
Map
<
String
,
Object
>>
itemList
=
new
ArrayList
<>();
JpStationDto
jpStation
=
jpStationMapper
.
getCountJpStationdata
(
reviewDto
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"
#
.00"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"
0
.00"
);
//炭
map
.
put
(
"carbon"
,
format2
.
format
(
jpStation
.
getAccumulatedPower
()*
CARBON
));
//硫
...
...
@@ -479,7 +479,7 @@ public class JpStationController extends BaseController {
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"
#
.00"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"
0
.00"
);
//炭
map
.
put
(
"name1"
,
"实时功率"
);
map
.
put
(
"name2"
,
"组件总容量"
);
...
...
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 @
9f2e91ca
...
...
@@ -126,7 +126,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
(
"
#
.000"
).
format
(
datum
.
getNum
()):
null
;
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"
0
.000"
).
format
(
datum
.
getNum
()):
null
;
listy
.
add
(
i
,
format
);
break
;
}
...
...
@@ -222,7 +222,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
(
"
#
.000"
).
format
(
datum
.
getNum
()):
null
;
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"
0
.000"
).
format
(
datum
.
getNum
()):
null
;
listy
.
add
(
i
,
format
);
break
;
}
...
...
@@ -264,7 +264,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
(
"
#
.000"
).
format
(
datum
.
getNum
()):
null
;
String
format
=
datum
.
getNum
()!=
null
?
new
DecimalFormat
(
"
0
.000"
).
format
(
datum
.
getNum
()):
null
;
listy
.
add
(
i
,
format
);
break
;
}
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/IdxBizPvHealthIndexController.java
View file @
9f2e91ca
...
...
@@ -46,7 +46,7 @@ public class IdxBizPvHealthIndexController extends BaseController {
PvHealthIndexMomentMapper
pvHealthIndexMomentMapper
;
@Autowired
PvWaringRecordMapper
pvWaringRecordMapper
;
public
final
DecimalFormat
df
=
new
DecimalFormat
(
"
#
.0"
);
public
final
DecimalFormat
df
=
new
DecimalFormat
(
"
0
.0"
);
/**
* 新增
*
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
9f2e91ca
...
...
@@ -122,7 +122,7 @@ public class TDBigScreenAnalyseController extends BaseController {
@Autowired
private
IdxBizPvWarningRuleSetServiceImpl
idxBizPvWarningRuleSetService
;
public
final
DecimalFormat
df
=
new
DecimalFormat
(
"
#
.0"
);
public
final
DecimalFormat
df
=
new
DecimalFormat
(
"
0
.0"
);
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"场站设备健康状态指数与趋势 - 仪表盘"
,
notes
=
"场站设备健康状态指数与趋势 - 仪表盘"
)
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-warn-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/DemoController.java
View file @
9f2e91ca
...
...
@@ -441,7 +441,7 @@ public class DemoController extends BaseController {
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupavg
(
map
,
"valueF"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
Map
<
String
,
Object
>
mapdta
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"
#
.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"
0
.0000"
);
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
...
@@ -473,7 +473,7 @@ public class DemoController extends BaseController {
List
<?
extends
Terms
.
Bucket
>
lidate
=
commonServiceImpl
.
getgroupsum
(
map
,
"valueF"
,
"equipmentIndexName.keyword"
,
ESEquipments
.
class
);
Map
<
String
,
Object
>
mapdta
=
new
HashMap
<>();
DecimalFormat
format2
=
new
DecimalFormat
(
"
#
.0000"
);
DecimalFormat
format2
=
new
DecimalFormat
(
"
0
.0000"
);
for
(
Terms
.
Bucket
bucket
:
lidate
)
{
Aggregations
aggregation
=
bucket
.
getAggregations
();
...
...
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