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
c3a6c0b8
Commit
c3a6c0b8
authored
Nov 30, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改场站日发小时小数位数
parent
e00c9231
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+8
-8
No files found.
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 @
c3a6c0b8
...
...
@@ -456,7 +456,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setState
(
jpStation
.
getState
());
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
())):
null
);
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
jpStation
.
getAccumulatedPower
()*
FD
/
jpStation
.
getCapacity
())));
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
jpStation
.
getAccumulatedPower
()*
FD
/
jpStation
.
getCapacity
())));
hd
.
setCumulativeIncome
(
jpStation
.
getCumulativeIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getCumulativeIncome
())):
null
);
ld
.
add
(
hd
);
}
...
...
@@ -476,7 +476,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setState
(
jpStation
.
getState
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
()*
FDL
)):
null
);
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
jpStation
.
getAccumulatedPower
()/
jpStation
.
getCapacity
())));
hd
.
setFullhour
(
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
jpStation
.
getAccumulatedPower
()/
jpStation
.
getCapacity
())));
hd
.
setCumulativeIncome
(
jpStation
.
getCumulativeIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getCumulativeIncome
())):
null
);
ld
.
add
(
hd
);
...
...
@@ -498,7 +498,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setState
(
jpStation
.
getState
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
()*
FDL
)):
null
);
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setDayGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getDayTime
());
hd
.
setDayIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
...
...
@@ -526,7 +526,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setMonthGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setMonthIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getMonthTime
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
break
;
}
}
...
...
@@ -549,7 +549,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
()*
FDL
)):
null
);
hd
.
setThirdStationId
(
jpStation
.
getThirdStationId
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setYearGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setYearIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getYearTime
());
...
...
@@ -641,7 +641,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setState
(
jpStation
.
getState
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
()*
FDL
)):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setDayGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getDayTime
());
hd
.
setDayIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
...
...
@@ -667,7 +667,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setMonthGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setMonthIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getMonthTime
());
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
break
;
}
}
...
...
@@ -688,7 +688,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto,JpStation,JpS
hd
.
setStationContact
(
jpStation
.
getStationContact
());
hd
.
setAccumulatedPower
(
jpStation
.
getAccumulatedPower
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
jpStation
.
getAccumulatedPower
()*
FDL
)):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
2
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setFullhour
(
dayGenerate
.
getFullhour
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.
3
f"
,
dayGenerate
.
getFullhour
())):
null
);
hd
.
setYearGenerate
(
dayGenerate
.
getGenerate
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getGenerate
())):
null
);
hd
.
setYearIncome
(
dayGenerate
.
getIncome
()!=
null
?
Double
.
valueOf
(
String
.
format
(
"%.3f"
,
dayGenerate
.
getIncome
())):
null
);
hd
.
setTimeDate
(
dayGenerate
.
getYearTime
());
...
...
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