Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
7ba50b34
Commit
7ba50b34
authored
May 09, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装机容量单位换算
parent
f680428b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+6
-4
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 @
7ba50b34
...
...
@@ -146,9 +146,7 @@ public class JpStationController extends BaseController {
qug3
.
eq
(
JpStation:
:
getThirdStationId
,
id
);
JpStation
JpStation
=
jpStationMapper
.
selectOne
(
qug3
);
// 单位转换
double
capacity
=
(
JpStation
.
getCapacity
()
==
null
?
0
:
JpStation
.
getCapacity
())/
1000
;
JpStation
.
setCapacity
(
capacity
);
JpStationDto
jpStationDto
=
jpStationServiceImpl
.
queryBySeq
(
JpStation
.
getSequenceNbr
());
LambdaQueryWrapper
<
JpInverter
>
qug
=
new
LambdaQueryWrapper
<>();
...
...
@@ -166,9 +164,13 @@ public class JpStationController extends BaseController {
RegionalCompanies
personnelBusiness
=
regionalCompaniesMapper
.
selectOne
(
qug2
);
String
names
=
jpCollector
.
stream
().
map
(
JpCollector:
:
getSnCode
).
collect
(
Collectors
.
joining
(
","
));
String
name
=
jpInverter
.
stream
().
map
(
JpInverter:
:
getSnCode
).
collect
(
Collectors
.
joining
(
","
));
// 单位转换
double
capacity
=
Double
.
parseDouble
(
String
.
format
(
"%.3f"
,
(
JpStation
.
getCapacity
()
==
null
?
0
:
JpStation
.
getCapacity
())/
1000
))
;
jpStationDto
.
setNbsn
(
name
);
jpStationDto
.
setCjsn
(
names
);
jpStationDto
.
setCapacity
(
jpStationDto
.
getCapacity
());
jpStationDto
.
setCapacity
(
capacity
);
jpStationDto
.
setRegionalCompaniesName
(
personnelBusiness
.
getRegionalCompaniesName
());
return
ResponseHelper
.
buildResponse
(
jpStationDto
);
}
...
...
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