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
720b4f69
Commit
720b4f69
authored
May 09, 2024
by
朱晨阳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改电站监控区域公司/经销商列表数据错误问题
parent
567b5c0d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
5 deletions
+8
-5
PowerStationStatistics.java
...amos/boot/module/hygf/api/dto/PowerStationStatistics.java
+1
-0
JpStationMapper.java
...oin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
+1
-0
JpStationMapper.xml
...f-api/src/main/resources/mapper/mysql/JpStationMapper.xml
+5
-4
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+1
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/PowerStationStatistics.java
View file @
720b4f69
...
...
@@ -19,5 +19,6 @@ public class PowerStationStatistics {
private
Double
totalCapacity
;
// 装机容量
private
Double
totalDayGenerate
;
// 日发电量
private
Double
totalRatedPower
;
// 额定功率
private
Double
totalRealTimePower
;
// 功率
private
Double
totalDayIncome
;
// 日收益
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/JpStationMapper.java
View file @
720b4f69
...
...
@@ -76,6 +76,7 @@ public interface JpStationMapper extends BaseMapper<JpStation> {
PowerStationStatistics
getRegionStatistics
(
@Param
(
"regionCode"
)
String
regionCode
,
@Param
(
"code"
)
String
code
);
@UserEmpower
(
field
={
"hygf_regional_companies.regional_companies_code"
},
dealerField
={
"hygf_unit_info.amos_company_code"
,
"hygf_regional_companies.regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
List
<
PowerStationStatistics
>
getDealerPage
(
String
regionalCompaniesCode
,
String
dealerName
);
@UserEmpower
(
field
={
"hygf_jp_station.regional_companies_code"
},
dealerField
={
"hygf_jp_station.amos_company_code"
,
"hygf_jp_station.regional_companies_code"
}
,
fieldConditions
={
"eq"
,
"in"
}
,
relationship
=
"and"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpStationMapper.xml
View file @
720b4f69
...
...
@@ -659,10 +659,11 @@
<!-- code参数为区域公司orgCode或经销商orgCode-->
<select
id=
"getRegionStatistics"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.PowerStationStatistics"
>
SELECT COUNT(*) AS powerStationNumber,
ROUND(SUM(capacity), 2) AS totalCapacity,
ROUND(SUM(day_generate), 2) AS totalDayGenerate,
ROUND(SUM(rated_power), 2) AS totalRatedPower,
ROUND(SUM(day_income), 2) AS totalDayIncome
ROUND(SUM(capacity)/1000, 3) AS totalCapacity,
ROUND(SUM(day_generate)/1000, 3) AS totalDayGenerate,
ROUND(SUM(rated_power), 3) AS totalRatedPower,
ROUND(SUM(real_time_power), 3) AS totalRealTimePower,
ROUND(SUM(day_income), 3) AS totalDayIncome
FROM hygf_jp_station hjs
<where>
<if
test=
"regionCode != null and regionCode !=''"
>
...
...
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 @
720b4f69
...
...
@@ -955,7 +955,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
@Override
public
Page
<
PowerStationStatistics
>
getDealerStatistics
(
Integer
current
,
Integer
size
,
String
regionalCompaniesCode
,
String
dealerName
)
{
PageHelper
.
startPage
(
current
,
size
);
// 根据区域公司orgCode查询区域公司下
所有
的经销商
// 根据区域公司orgCode查询区域公司下
自己
的经销商
List
<
PowerStationStatistics
>
dealerPage
=
jpStationMapper
.
getDealerPage
(
regionalCompaniesCode
,
dealerName
);
PageInfo
<
PowerStationStatistics
>
page
=
new
PageInfo
(
dealerPage
);
Page
<
PowerStationStatistics
>
pagenew
=
new
Page
<
PowerStationStatistics
>();
...
...
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