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
e9abeee2
Commit
e9abeee2
authored
Sep 20, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加采集器接口
parent
bd1eb970
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
57 additions
and
13 deletions
+57
-13
TdHygfJpCollectorHistoryMapper.java
...gf/api/tdenginemapper/TdHygfJpCollectorHistoryMapper.java
+8
-1
TdHygfJpCollectorHistoryMapper.xml
...ources/mapper/tdengine/TdHygfJpCollectorHistoryMapper.xml
+14
-1
TdHygfJpInverterHistoryMapper.xml
...sources/mapper/tdengine/TdHygfJpInverterHistoryMapper.xml
+14
-1
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+7
-3
TdHygfJpInvertorElecHistoryMapper.xml
...ces/mapper/tdengine/TdHygfJpInvertorElecHistoryMapper.xml
+11
-5
TdHygfJpCollectorHistoryController.java
...gf/biz/controller/TdHygfJpCollectorHistoryController.java
+1
-1
TdHygfJpInvertorElecHistoryController.java
...biz/controller/TdHygfJpInvertorElecHistoryController.java
+1
-1
TdHygfJpCollectorHistoryServiceImpl.java
...biz/service/impl/TdHygfJpCollectorHistoryServiceImpl.java
+1
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpCollectorHistoryMapper.java
View file @
e9abeee2
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpCollectorHistory
;
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.TdHygfJpCollectorHistoryDto
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.TdHygfJpCollectorHistory
;
/**
* 户用光伏监盘采集器历史表 Mapper 接口
...
...
@@ -11,4 +16,6 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public
interface
TdHygfJpCollectorHistoryMapper
extends
BaseMapper
<
TdHygfJpCollectorHistory
>
{
List
<
TdHygfJpCollectorHistoryDto
>
dayList
(
@Param
(
"snCode"
)
String
snCode
,
@Param
(
"thirdStationId"
)
String
thirdStationId
,
@Param
(
"startTime"
)
long
startTime
,
@Param
(
"endTime"
)
long
endTime
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpCollectorHistoryMapper.xml
View file @
e9abeee2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpCollectorHistoryMapper"
>
<select
id=
"dayList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpCollectorHistoryDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history
<where>
<if
test=
"snCode!=null"
>
AND `sn_code` = #{snCode}
</if>
<if
test=
"thirdStationId!=null"
>
AND `third_station_id` = #{thirdStationId}
</if>
<if
test=
"startTime!=null and endTime!=null"
>
AND time BETWEEN #{startTime} AND #{endTime}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterHistoryMapper.xml
View file @
e9abeee2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterHistoryMapper"
>
<select
id=
"dayList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpCollectorHistoryDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_collector_history
<where>
<if
test=
"snCode!=null"
>
AND `sn_code` = #{snCode}
</if>
<if
test=
"thirdStationId!=null"
>
AND `third_station_id` = #{thirdStationId}
</if>
<if
test=
"startTime!=null and endTime!=null"
>
AND time BETWEEN #{startTime} AND #{endTime}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
e9abeee2
...
...
@@ -2,8 +2,6 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInverterWarnMapper"
>
<select
id=
"getCountTdHygfJpInverterWarn"
resultType=
"map"
>
SELECT `state`,count(`state`) num
FROM house_pv_data.td_hygf_jp_inverter_warn
...
...
@@ -23,7 +21,13 @@
<where>
<if
test=
"param.state!=null"
>
`state` = #{param.state}
</if>
</if>
<if
test=
"param.stationIds!=null"
>
AND third_station_id IN
<foreach
collection=
"param.stationIds"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInvertorElecHistoryMapper.xml
View file @
e9abeee2
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.yeejoin.amos.boot.module.hygf.api.tdenginemapper.TdHygfJpInvertorElecHistoryMapper"
>
<select
id=
"
list"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarn
Dto"
>
SELECT * FROM house_pv_data.td_hygf_jp_invert
er_warn
<select
id=
"
dayList"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInvertorElecHistory
Dto"
>
SELECT * FROM house_pv_data.td_hygf_jp_invert
or_elec_history
<where>
<if
test=
"param.state!=null"
>
`state` = #{param.state}
</if>
<if
test=
"snCode!=null"
>
AND `sn_code` = #{snCode}
</if>
<if
test=
"thirdStationId!=null"
>
AND `third_station_id` = #{thirdStationId}
</if>
<if
test=
"startTime!=null and endTime!=null"
>
AND time BETWEEN #{startTime} AND #{endTime}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpCollectorHistoryController.java
View file @
e9abeee2
...
...
@@ -128,7 +128,7 @@ public class TdHygfJpCollectorHistoryController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘采集器历史表列表全部数据查询"
,
notes
=
"户用光伏监盘采集器历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/day"
)
public
ResponseModel
<
List
<
TdHygfJpCollectorHistory
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
()
Date
day
)
{
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpCollectorHistoryServiceImpl
.
dayList
(
id
,
day
));
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInvertorElecHistoryController.java
View file @
e9abeee2
...
...
@@ -128,7 +128,7 @@ public class TdHygfJpInvertorElecHistoryController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
,
notes
=
"户用光伏监盘逆变器电能历史表列表全部数据查询"
)
@GetMapping
(
value
=
"/list/day"
)
public
ResponseModel
<
List
<
TdHygfJpInvertorElecHistory
>>
dayList
(
@RequestParam
(
value
=
"id"
)
long
id
,
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
()
Date
day
)
{
@RequestParam
(
value
=
"day"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
Date
day
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpInvertorElecHistoryServiceImpl
.
dayList
(
id
,
day
));
}
}
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 @
e9abeee2
...
...
@@ -44,6 +44,7 @@ public class TdHygfJpCollectorHistoryServiceImpl
*/
public
List
<
TdHygfJpCollectorHistory
>
dayList
(
long
id
,
Date
day
)
{
JpCollector
collector
=
jpCollectorServiceImpl
.
getById
(
id
);
if
(
collector
!=
null
)
{
LambdaQueryChainWrapper
<
TdHygfJpCollectorHistory
>
warpper
=
this
.
lambdaQuery
()
.
between
(
TdHygfJpCollectorHistory:
:
getTime
,
TimeUtil
.
getStartTimeOfDay
(
day
),
...
...
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