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
49e94886
Commit
49e94886
authored
Sep 20, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加电站告警统计接口
parent
05ed8c82
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
4 deletions
+25
-4
JpStationDto.java
...m/yeejoin/amos/boot/module/hygf/api/dto/JpStationDto.java
+9
-0
TdHygfJpInverterWarnMapper.java
...e/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
+1
-0
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+2
-2
JpStationController.java
.../boot/module/hygf/biz/controller/JpStationController.java
+12
-1
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.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/JpStationDto.java
View file @
49e94886
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpPersonStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpPersonStation
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
...
@@ -132,4 +135,10 @@ public class JpStationDto extends BaseDto {
...
@@ -132,4 +135,10 @@ public class JpStationDto extends BaseDto {
private
int
countBuiltNum
;
//已建设场站数量
private
int
countBuiltNum
;
//已建设场站数量
private
int
countNBuiltNum
;
//未建设场站数量
private
int
countNBuiltNum
;
//未建设场站数量
List
<
JpInverter
>
jpInverter
;
List
<
JpCollector
>
JpCollector
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
View file @
49e94886
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpInverterWarn
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
49e94886
...
@@ -6,12 +6,12 @@
...
@@ -6,12 +6,12 @@
SELECT `state`,count(`state`) num
SELECT `state`,count(`state`) num
FROM
house_pv_data.
td_hygf_jp_inverter_warn
FROM td_hygf_jp_inverter_warn
<where>
<where>
<if
test=
"dto!=null"
>
<if
test=
"dto!=null"
>
third_station_id in
third_station_id in
<foreach
collection=
"dto"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"dto"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item.
s
tationId}
#{item.
thirdS
tationId}
</foreach>
</foreach>
</if>
</if>
</where>
</where>
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpStationController.java
View file @
49e94886
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.ReviewDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.ReviewDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpPersonStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpPersonStation
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PersonnelBusiness
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.PersonnelBusiness
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.JpCollectorMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.JpCollectorMapper
;
...
@@ -100,7 +102,16 @@ public class JpStationController extends BaseController {
...
@@ -100,7 +102,16 @@ public class JpStationController extends BaseController {
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个第三方场站"
,
notes
=
"根据sequenceNbr查询单个第三方场站"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个第三方场站"
,
notes
=
"根据sequenceNbr查询单个第三方场站"
)
public
ResponseModel
<
JpStationDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
JpStationDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jpStationServiceImpl
.
queryBySeq
(
sequenceNbr
));
JpStationDto
jpStationDto
=
jpStationServiceImpl
.
queryBySeq
(
sequenceNbr
);
LambdaQueryWrapper
<
JpInverter
>
qug
=
new
LambdaQueryWrapper
<>();
qug
.
eq
(
JpInverter:
:
getThirdStationId
,
jpStationDto
.
getThirdStationId
());
List
<
JpInverter
>
jpInverter
=
jpInverterMapper
.
selectList
(
qug
);
LambdaQueryWrapper
<
JpCollector
>
qug1
=
new
LambdaQueryWrapper
<>();
qug1
.
eq
(
JpCollector:
:
getThirdStationId
,
jpStationDto
.
getThirdStationId
());
List
<
JpCollector
>
JpCollector
=
jpCollectorMapper
.
selectList
(
qug1
);
jpStationDto
.
setJpCollector
(
JpCollector
);
jpStationDto
.
setJpInverter
(
jpInverter
);
return
ResponseHelper
.
buildResponse
(
jpStationDto
);
}
}
/**
/**
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
49e94886
...
@@ -164,7 +164,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
...
@@ -164,7 +164,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
qugda
.
like
(
reviewDto
.
getUserName
()!=
null
,
JpStation:
:
getUserName
,
reviewDto
.
getUserName
());
qugda
.
like
(
reviewDto
.
getUserName
()!=
null
,
JpStation:
:
getUserName
,
reviewDto
.
getUserName
());
qugda
.
like
(
reviewDto
.
getArea
()!=
null
,
JpStation:
:
getArea
,
reviewDto
.
getArea
());
qugda
.
like
(
reviewDto
.
getArea
()!=
null
,
JpStation:
:
getArea
,
reviewDto
.
getArea
());
List
<
JpStation
>
pPersonStation
=
jpStationMapper
.
selectList
(
qugda
);
List
<
JpStation
>
pPersonStation
=
jpStationMapper
.
selectList
(
qugda
);
List
<
Map
<
String
,
Object
>>
datalist
=
tdHygfJpInverterWarnMapper
.
getCountTdHygfJpInverterWarn
(
pPersonStation
);
List
<
Map
<
String
,
Object
>>
datalist
=
tdHygfJpInverterWarnMapper
.
getCountTdHygfJpInverterWarn
(
pPersonStation
!=
null
&&!
pPersonStation
.
isEmpty
()?
pPersonStation:
null
);
return
ResponseHelper
.
buildResponse
(
datalist
);
return
ResponseHelper
.
buildResponse
(
datalist
);
}
}
...
...
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