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
7c1f7b7c
Commit
7c1f7b7c
authored
Sep 22, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
逆变器采集器增加列表展示冗余字段
parent
66b77b7d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
2 deletions
+29
-2
JpCollectorDto.java
...yeejoin/amos/boot/module/hygf/api/dto/JpCollectorDto.java
+8
-0
JpCollector.java
...yeejoin/amos/boot/module/hygf/api/entity/JpCollector.java
+5
-0
JpCollectorController.java
...oot/module/hygf/biz/controller/JpCollectorController.java
+16
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpCollectorDto.java
View file @
7c1f7b7c
...
...
@@ -3,8 +3,10 @@ package com.yeejoin.amos.boot.module.hygf.api.dto;
import
java.util.Date
;
import
java.util.List
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
...
...
@@ -72,5 +74,11 @@ public class JpCollectorDto extends BaseDto {
@ApiModelProperty
(
value
=
"电站地址"
)
private
String
addr
;
@ApiModelProperty
(
value
=
"采集器列表"
)
private
List
<
JpInverter
>
jpInverters
;
private
List
<
String
>
stationIds
;
@ApiModelProperty
(
value
=
"采集器名称"
)
private
String
name
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/JpCollector.java
View file @
7c1f7b7c
...
...
@@ -117,5 +117,10 @@ public class JpCollector extends BaseEntity {
*/
@TableField
(
"addr"
)
private
String
addr
;
/**
* 采集器名称
*/
@TableField
(
"name"
)
private
String
name
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/JpCollectorController.java
View file @
7c1f7b7c
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
controller
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpInverterDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpInverter
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.JpInverterServiceImpl
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
...
...
@@ -42,6 +46,9 @@ public class JpCollectorController extends BaseController {
@Autowired
JpPersonStationMapper
pPersonStationMapper
;
@Autowired
JpInverterServiceImpl
jpInverterServiceImpl
;
/**
* 新增户用光伏监盘采集器表
*
...
...
@@ -92,9 +99,16 @@ public class JpCollectorController extends BaseController {
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏监盘采集器表"
,
notes
=
"根据sequenceNbr查询单个户用光伏监盘采集器表"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏监盘采集器表"
,
notes
=
"根据sequenceNbr查询单个户用光伏监盘采集器表"
)
public
ResponseModel
<
JpCollectorDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jpCollectorServiceImpl
.
queryBySeq
(
sequenceNbr
));
JpCollectorDto
jpCollectorDto
=
jpCollectorServiceImpl
.
queryBySeq
(
sequenceNbr
);
LambdaQueryWrapper
<
JpInverter
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
JpInverter:
:
getCollectorSnCode
,
jpCollectorDto
.
getSnCode
());
List
<
JpInverter
>
list
=
jpInverterServiceImpl
.
list
(
queryWrapper
);
jpCollectorDto
.
setJpInverters
(
list
);
return
ResponseHelper
.
buildResponse
(
jpCollectorDto
);
}
/**
...
...
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