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
0c4bda43
Commit
0c4bda43
authored
Sep 20, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加信号曲线接口
parent
bf1a96c7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
23 additions
and
36 deletions
+23
-36
JpInvertorElecHistoryAllDto.java
...boot/module/hygf/api/dto/JpInvertorElecHistoryAllDto.java
+0
-6
JpInvertorElecHistoryMonthDto.java
...ot/module/hygf/api/dto/JpInvertorElecHistoryMonthDto.java
+0
-6
JpInvertorElecHistoryYearDto.java
...oot/module/hygf/api/dto/JpInvertorElecHistoryYearDto.java
+0
-6
TdHygfJpCollectorHistoryMapper.java
...gf/api/tdenginemapper/TdHygfJpCollectorHistoryMapper.java
+6
-3
TdHygfJpCollectorHistoryMapper.xml
...ources/mapper/tdengine/TdHygfJpCollectorHistoryMapper.xml
+5
-5
TdHygfJpCollectorHistoryController.java
...gf/biz/controller/TdHygfJpCollectorHistoryController.java
+6
-4
TdHygfJpCollectorHistoryServiceImpl.java
...biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
+6
-6
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpInvertorElecHistoryAllDto.java
View file @
0c4bda43
...
...
@@ -25,27 +25,21 @@ public class JpInvertorElecHistoryAllDto extends BaseDto {
private
String
snCode
;
@ApiModelProperty
(
value
=
"U交流电压"
)
@TableField
(
"U_AC_voltage"
)
private
Double
uAcVoltage
;
@ApiModelProperty
(
value
=
"V交流电压"
)
@TableField
(
"V_AC_voltage"
)
private
Double
vAcVoltage
;
@ApiModelProperty
(
value
=
"W交流电压"
)
@TableField
(
"W_AC_voltage"
)
private
Double
wAcVoltage
;
@ApiModelProperty
(
value
=
"U交流电流"
)
@TableField
(
"U_AC_current"
)
private
Double
uAcCurrent
;
@ApiModelProperty
(
value
=
"V交流电流"
)
@TableField
(
"V_AC_current"
)
private
Double
vAcCurrent
;
@ApiModelProperty
(
value
=
"W交流电流"
)
@TableField
(
"W_AC_current"
)
private
Double
wAcCurrent
;
@ApiModelProperty
(
value
=
"第三方电站id"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpInvertorElecHistoryMonthDto.java
View file @
0c4bda43
...
...
@@ -25,27 +25,21 @@ public class JpInvertorElecHistoryMonthDto extends BaseDto {
private
String
snCode
;
@ApiModelProperty
(
value
=
"U交流电压"
)
@TableField
(
"U_AC_voltage"
)
private
Double
uAcVoltage
;
@ApiModelProperty
(
value
=
"V交流电压"
)
@TableField
(
"V_AC_voltage"
)
private
Double
vAcVoltage
;
@ApiModelProperty
(
value
=
"W交流电压"
)
@TableField
(
"W_AC_voltage"
)
private
Double
wAcVoltage
;
@ApiModelProperty
(
value
=
"U交流电流"
)
@TableField
(
"U_AC_current"
)
private
Double
uAcCurrent
;
@ApiModelProperty
(
value
=
"V交流电流"
)
@TableField
(
"V_AC_current"
)
private
Double
vAcCurrent
;
@ApiModelProperty
(
value
=
"W交流电流"
)
@TableField
(
"W_AC_current"
)
private
Double
wAcCurrent
;
@ApiModelProperty
(
value
=
"第三方电站id"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/JpInvertorElecHistoryYearDto.java
View file @
0c4bda43
...
...
@@ -25,27 +25,21 @@ public class JpInvertorElecHistoryYearDto extends BaseDto {
private
String
snCode
;
@ApiModelProperty
(
value
=
"U交流电压"
)
@TableField
(
"U_AC_voltage"
)
private
Double
uAcVoltage
;
@ApiModelProperty
(
value
=
"V交流电压"
)
@TableField
(
"V_AC_voltage"
)
private
Double
vAcVoltage
;
@ApiModelProperty
(
value
=
"W交流电压"
)
@TableField
(
"W_AC_voltage"
)
private
Double
wAcVoltage
;
@ApiModelProperty
(
value
=
"U交流电流"
)
@TableField
(
"U_AC_current"
)
private
Double
uAcCurrent
;
@ApiModelProperty
(
value
=
"V交流电流"
)
@TableField
(
"V_AC_current"
)
private
Double
vAcCurrent
;
@ApiModelProperty
(
value
=
"W交流电流"
)
@TableField
(
"W_AC_current"
)
private
Double
wAcCurrent
;
@ApiModelProperty
(
value
=
"第三方电站id"
)
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpCollectorHistoryMapper.java
View file @
0c4bda43
...
...
@@ -5,6 +5,9 @@ import java.util.List;
import
org.apache.ibatis.annotations.Param
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryAllDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryMonthDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryYearDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpCollectorHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpCollectorHistory
;
...
...
@@ -20,12 +23,12 @@ public interface TdHygfJpCollectorHistoryMapper extends BaseMapper<TdHygfJpColle
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"startTime"
)
long
startTime
,
@Param
(
"endTime"
)
long
endTime
);
List
<
TdHygfJpCollectorHistory
Dto
>
monthList
(
@Param
(
"snCode"
)
String
snCode
,
List
<
JpCollectorHistoryMonth
Dto
>
monthList
(
@Param
(
"snCode"
)
String
snCode
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"month"
)
String
month
);
List
<
TdHygfJpCollectorHistory
Dto
>
yearList
(
@Param
(
"snCode"
)
String
snCode
,
List
<
JpCollectorHistoryYear
Dto
>
yearList
(
@Param
(
"snCode"
)
String
snCode
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"year"
)
String
year
);
List
<
TdHygfJpCollectorHistory
Dto
>
allList
(
@Param
(
"snCode"
)
String
snCode
,
List
<
JpCollectorHistoryAll
Dto
>
allList
(
@Param
(
"snCode"
)
String
snCode
,
@Param
(
"thirdStationId"
)
String
thirdStationId
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpCollectorHistoryMapper.xml
View file @
0c4bda43
...
...
@@ -15,7 +15,7 @@
</if>
</where>
</select>
<select
id=
"monthList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.
TdHygf
JpCollectorHistoryMonthDto"
>
<select
id=
"monthList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryMonthDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history_month
<where>
<if
test=
"snCode!=null"
>
...
...
@@ -29,8 +29,8 @@
</if>
</where>
</select>
<select
id=
"yearList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.
TdHygf
JpCollectorHistoryYearDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history_
month
<select
id=
"yearList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryYearDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history_
year
<where>
<if
test=
"snCode!=null"
>
AND `sn_code` = #{snCode}
...
...
@@ -43,8 +43,8 @@
</if>
</where>
</select>
<select
id=
"
yearList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygf
JpCollectorHistoryAllDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history_
month
<select
id=
"
allList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.
JpCollectorHistoryAllDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history_
all
<where>
<if
test=
"snCode!=null"
>
AND `sn_code` = #{snCode}
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpCollectorHistoryController.java
View file @
0c4bda43
...
...
@@ -23,8 +23,10 @@ import org.typroject.tyboot.core.restful.utils.ResponseModel;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryAllDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryMonthDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryYearDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpCollectorHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpCollectorHistory
;
import
com.yeejoin.amos.boot.module.hygf.biz.service.impl.TdHygfJpCollectorHistoryServiceImpl
;
import
io.swagger.annotations.Api
;
...
...
@@ -140,7 +142,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/month"
)
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
Dto
>>
monthList
(
@RequestParam
(
value
=
"id"
)
long
id
,
public
ResponseModel
<
List
<
JpCollectorHistoryMonth
Dto
>>
monthList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"month"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM"
)
Date
month
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
monthList
(
id
,
month
));
}
...
...
@@ -153,7 +155,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/year"
)
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
Dto
>>
yearList
(
@RequestParam
(
value
=
"id"
)
long
id
,
public
ResponseModel
<
List
<
JpCollectorHistoryYear
Dto
>>
yearList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"year"
)
@DateTimeFormat
(
pattern
=
"yyyy"
)
Date
year
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
yearList
(
id
,
year
));
}
...
...
@@ -166,7 +168,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/all"
)
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
Dto
>>
allList
(
@RequestParam
(
value
=
"id"
)
long
id
)
{
public
ResponseModel
<
List
<
JpCollectorHistoryAll
Dto
>>
allList
(
@RequestParam
(
value
=
"id"
)
long
id
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
allList
(
id
));
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
View file @
0c4bda43
...
...
@@ -9,13 +9,13 @@ import org.springframework.stereotype.Service;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryAllDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryMonthDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorHistoryYearDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpCollectorHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.JpCollector
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpCollectorHistory
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ITdHygfJpCollectorHistoryService
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.JpCollectorHistoryAllMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.JpCollectorHistoryMonthMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.JpCollectorHistoryYearMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpCollectorHistoryMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.util.TimeUtil
;
...
...
@@ -57,7 +57,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
/**
* 列表查询 示例
*/
public
List
<
TdHygfJpCollectorHistory
Dto
>
monthList
(
long
id
,
Date
month
)
{
public
List
<
JpCollectorHistoryMonth
Dto
>
monthList
(
long
id
,
Date
month
)
{
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
if
(
collector
!=
null
)
{
...
...
@@ -70,7 +70,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
/**
* 列表查询 示例
*/
public
List
<
TdHygfJpCollectorHistory
Dto
>
yearList
(
long
id
,
Date
year
)
{
public
List
<
JpCollectorHistoryYear
Dto
>
yearList
(
long
id
,
Date
year
)
{
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
if
(
collector
!=
null
)
{
...
...
@@ -83,7 +83,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
/**
* 列表查询 示例
*/
public
List
<
TdHygfJpCollectorHistory
Dto
>
allList
(
long
id
)
{
public
List
<
JpCollectorHistoryAll
Dto
>
allList
(
long
id
)
{
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
if
(
collector
!=
null
)
{
...
...
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