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
612187c7
Commit
612187c7
authored
Dec 10, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
电站整体发电历史及功率曲线增加每日
parent
85a121f7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
11 deletions
+27
-11
MonthPowerMapper.java
...boot/module/hygf/api/tdenginemapper/MonthPowerMapper.java
+3
-2
MonthPowerMapper.xml
...i/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
+9
-4
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+3
-0
HYGFMaintenanceTicketsServiceImpl.java
...f/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
+1
-0
JpStationServiceImpl.java
...ot/module/hygf/biz/service/impl/JpStationServiceImpl.java
+11
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/MonthPowerMapper.java
View file @
612187c7
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.config.UserEmpower
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.PowerCurveDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.AllPower
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.MonthPower
;
...
...
@@ -30,7 +31,7 @@ public interface MonthPowerMapper extends BaseMapper<MonthPower> {
List
<
PowerCurveDto
>
getYearPower
(
@Param
(
"date"
)
String
month
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
List
<
PowerCurveDto
>
getAllPower
(
@Param
(
"date"
)
String
month
,
@Param
(
"dto"
)
List
<
String
>
statioId
);
List
<
PowerCurveDto
>
getDayPowercount
(
@Param
(
"date"
)
String
month
,
@Param
(
"dto"
)
List
<
String
>
statioId
,
@Param
(
"thirdStationId"
)
String
thirdStationId
);
@UserEmpower
(
field
=
{
"regional_companies_code"
},
dealerField
=
{
"amos_company_code"
,
"regional_companies_code"
},
fieldConditions
=
{
"eq"
,
"in"
},
relationship
=
"and"
)
List
<
PowerCurveDto
>
getDayPowercount
(
@Param
(
"date"
)
String
month
,
@Param
(
"
regionalCompaniesCode"
)
String
regionalCompaniesCode
,
@Param
(
"amosCompanyCode"
)
String
amosCompanyCode
,
@Param
(
"
dto"
)
List
<
String
>
statioId
,
@Param
(
"thirdStationId"
)
String
thirdStationId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/MonthPowerMapper.xml
View file @
612187c7
...
...
@@ -90,12 +90,17 @@
<if
test=
"thirdStationId!=null and thirdStationId != ''"
>
and third_station_id = #{thirdStationId}
</if>
<if
test=
"regionalCompaniesCode!=null and regionalCompaniesCode != ''"
>
and regional_companies_code = #{regionalCompaniesCode}
</if>
<if
test=
"amosCompanyCode!=null and amosCompanyCode != ''"
>
and amos_company_code = #{amosCompanyCode}
</if>
<if
test=
"date!=null and date != ''"
>
and year_month_day = #{date}
</if>
</where>
and year_month_day = #{date}
GROUP BY `hour`
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
612187c7
...
...
@@ -383,6 +383,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"工率曲线"
,
notes
=
"电站监控电量收益"
)
@GetMapping
(
value
=
"/getPowerqx"
)
@UserLimits
public
ResponseModel
<
Map
<
String
,
List
<
Object
>>>
getPowerqx
(
JpStationDto
reviewDto
,
String
date
,
String
type
)
{
//获取当前人管理场站
List
<
String
>
data
=
new
ArrayList
();
...
...
@@ -795,6 +796,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
needAuth
=
false
,
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"发电量曲线"
,
notes
=
"发电量曲线"
)
@GetMapping
(
value
=
"/getGenerateqx"
)
@UserLimits
public
ResponseModel
<
Map
<
String
,
List
<
Object
>>>
getGenerateqx
(
JpStationDto
reviewDto
,
String
date
,
String
type
)
{
Map
<
String
,
List
<
Object
>>
map
=
jpStationServiceImpl
.
getGenerateqx
(
date
,
type
,
reviewDto
);
...
...
@@ -806,6 +808,7 @@ public class JpStationController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"工率曲线"
,
notes
=
"电站监控电量收益"
)
@GetMapping
(
value
=
"/getPowerqxnew"
)
@UserLimits
public
ResponseModel
<
Map
<
String
,
List
<
Object
>>>
getPowerqxnew
(
JpStationDto
reviewDto
,
String
date
)
{
Map
<
String
,
List
<
Object
>>
map
=
jpStationServiceImpl
.
getPowerqxnew
(
date
,
reviewDto
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HYGFMaintenanceTicketsServiceImpl.java
View file @
612187c7
...
...
@@ -33,6 +33,7 @@ import org.typroject.tyboot.core.rdbms.service.BaseService;
import
org.typroject.tyboot.core.restful.exception.instance.BadRequest
;
import
java.nio.charset.StandardCharsets
;
import
java.time.format.DateTimeFormatter
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
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 @
612187c7
...
...
@@ -122,7 +122,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
if
(
type
.
equals
(
"day"
)){
map
=
gethourList
();
data
=
monthPowerMapper
.
getDayPowercount
(
date
,
statioId
,
null
);
data
=
monthPowerMapper
.
getDayPowercount
(
date
,
null
,
null
,
statioId
,
null
);
}
else
if
(
type
.
equals
(
"month"
)){
map
=
getDayListOfMonth
(
date
);
data
=
monthPowerMapper
.
getMonthPower
(
date
,
statioId
);
...
...
@@ -242,8 +242,12 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
Map
<
String
,
List
<
Object
>>
map
=
new
HashMap
<>();
Map
<
String
,
List
<
Object
>>
map1
=
new
HashMap
<>();
try
{
if
(
type
.
equals
(
"month"
)){
if
(
type
.
equals
(
"day"
)){
map
=
gethourList
();
listx
=
map
.
get
(
"x"
);
data
=
monthPowerMapper
.
getDayPowercount
(
date
,
reviewDto
.
getRegionalCompaniesCode
(),
reviewDto
.
getAmosCompanyCode
(),
null
,
reviewDto
.
getThirdStationId
());
// }
}
else
if
(
type
.
equals
(
"month"
)){
map
=
getDayListOfMonth
(
reviewDto
.
getTimeDateMonth
());
// if(statioId!=null&&!statioId.isEmpty()) {
...
...
@@ -291,7 +295,9 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
@Override
@UserLimits
public
Map
<
String
,
List
<
Object
>>
getPowerqxnew
(
String
date
,
JpStationDto
reviewDto
)
{
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
if
(
StringUtils
.
isEmpty
(
date
)){
date
=
DateUtil
.
format
(
new
Date
(),
"yyyy-MM-dd"
);
}
// List<String> statioId=new ArrayList();
// List<JpStation> dataJpStation= jpStationMapper.getJpStation(reviewDto);
// for (JpStation jpStation : dataJpStation) {
...
...
@@ -302,7 +308,7 @@ public class JpStationServiceImpl extends BaseService<JpStationDto, JpStation, J
List
<
Object
>
listy
=
new
ArrayList
<>();
Map
<
String
,
List
<
Object
>>
map
=
new
HashMap
<>();
map
=
gethourList
();
data
=
monthPowerMapper
.
getDayPowercount
(
date
,
null
,
reviewDto
.
getThirdStationId
());
data
=
monthPowerMapper
.
getDayPowercount
(
date
,
null
,
null
,
null
,
reviewDto
.
getThirdStationId
());
listx
=
map
.
get
(
"x"
);
listy
=
map
.
get
(
"y"
);
if
(
data
!=
null
&&!
data
.
isEmpty
()){
...
...
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