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
506eaa65
Commit
506eaa65
authored
Sep 21, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改告警查询
parent
8d417b64
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
2 deletions
+13
-2
TdHygfJpInverterWarnDto.java
...mos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
+2
-0
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+5
-2
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+6
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
View file @
506eaa65
...
@@ -55,4 +55,6 @@ public class TdHygfJpInverterWarnDto {
...
@@ -55,4 +55,6 @@ public class TdHygfJpInverterWarnDto {
private
List
<
String
>
stationIds
;
private
List
<
String
>
stationIds
;
private
List
<
String
>
states
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
506eaa65
...
@@ -19,8 +19,11 @@
...
@@ -19,8 +19,11 @@
<select
id=
"list"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto"
>
<select
id=
"list"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_inverter_warn
SELECT * FROM house_pv_data.td_hygf_jp_inverter_warn
<where>
<where>
<if
test=
"param.state!=null"
>
<if
test=
"param.states!=null"
>
`state` = #{param.state}
AND `state` IN
<foreach
collection=
"param.states"
item=
"item"
index=
"index"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
</if>
<if
test=
"param.stationIds!=null"
>
<if
test=
"param.stationIds!=null"
>
AND third_station_id IN
AND third_station_id IN
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
View file @
506eaa65
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
java.lang.reflect.Array
;
import
java.util.Arrays
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -38,6 +40,10 @@ public class TdHygfJpInverterWarnServiceImpl
...
@@ -38,6 +40,10 @@ public class TdHygfJpInverterWarnServiceImpl
int
pageNum
=
(
int
)
pageParam
.
getCurrent
();
int
pageNum
=
(
int
)
pageParam
.
getCurrent
();
int
pageSize
=
(
int
)
pageParam
.
getSize
();
int
pageSize
=
(
int
)
pageParam
.
getSize
();
PageHelper
.
startPage
(
pageNum
,
pageSize
);
PageHelper
.
startPage
(
pageNum
,
pageSize
);
if
(
tdHygfJpInverterWarnDto
.
getState
()
!=
null
)
{
String
[]
s
=
tdHygfJpInverterWarnDto
.
getState
().
split
(
","
);
tdHygfJpInverterWarnDto
.
setStates
(
Arrays
.
asList
(
s
));
}
List
<
TdHygfJpInverterWarnDto
>
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
List
<
TdHygfJpInverterWarnDto
>
list
=
this
.
baseMapper
.
list
(
tdHygfJpInverterWarnDto
);
PageInfo
<
TdHygfJpInverterWarnDto
>
page
=
new
PageInfo
(
list
);
PageInfo
<
TdHygfJpInverterWarnDto
>
page
=
new
PageInfo
(
list
);
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>();
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>
pagenew
=
new
com
.
baomidou
.
mybatisplus
.
extension
.
plugins
.
pagination
.
Page
<
TdHygfJpInverterWarnDto
>();
...
...
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