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
0ab9afee
Commit
0ab9afee
authored
Nov 21, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Plain Diff
解决冲突
parents
5a8526e7
ba574c0a
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
76 additions
and
9 deletions
+76
-9
JpCollectorDto.java
...yeejoin/amos/boot/module/hygf/api/dto/JpCollectorDto.java
+4
-0
TdHygfJpInverterWarnDto.java
...mos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
+8
-0
TdHygfJpInverterWarnMapper.java
...e/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
+2
-0
JpCollectorMapper.xml
...api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
+5
-5
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+45
-1
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+8
-3
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+4
-0
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 @
0ab9afee
...
...
@@ -81,4 +81,8 @@ public class JpCollectorDto extends BaseDto {
@ApiModelProperty
(
value
=
"采集器名称"
)
private
String
name
;
@ApiModelProperty
(
value
=
"类型"
)
private
String
collectorType
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
View file @
0ab9afee
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
...
@@ -35,9 +36,16 @@ public class TdHygfJpInverterWarnDto {
@ApiModelProperty
(
value
=
"起始时间"
)
private
Long
startTime
;
@ApiModelProperty
(
value
=
"报警时间"
)
private
Date
startTimeDate
;
@ApiModelProperty
(
value
=
"恢复时间"
)
private
Long
recoverTime
;
@ApiModelProperty
(
value
=
"恢复时间"
)
private
Date
recoverTimeString
;
@ApiModelProperty
(
value
=
"处理方法"
)
private
String
treatment
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
View file @
0ab9afee
...
...
@@ -27,4 +27,6 @@ public interface TdHygfJpInverterWarnMapper extends BaseMapper<TdHygfJpInverterW
TdHygfJpInverterWarnDto
getByTime
(
@Param
(
"createdTime"
)
long
createdTime
);
List
<
TdHygfJpInverterWarnDto
>
selectWarnList
(
String
state
,
String
level
,
String
minValue
,
String
maxValue
,
String
snCode
,
List
<
String
>
stationId
,
String
startTime
,
String
endTime
,
String
content
,
Integer
current
,
Integer
size
);
int
selectWarnListTotal
(
String
state
,
String
level
,
String
minValue
,
String
maxValue
,
String
snCode
,
List
<
String
>
stationId
,
String
startTime
,
String
endTime
,
String
content
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/mysql/JpCollectorMapper.xml
View file @
0ab9afee
...
...
@@ -43,12 +43,12 @@
<select
id=
"selectPageData"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.JpCollectorDto"
>
select
hjc.state,
hjc.sn_code,
sta.station_n
ame,
hjc.update_time,
hjc.sn_code
as snCode
,
hjc.station_name as stationN
ame,
hjc.update_time
AS updateTime
,
hjc.type as collectorType,
sta.name,
sta.type
sta.name
as name
,
sta.type
as type
from
hygf_jp_collector hjc
left join hygf_jp_station sta on sta.third_station_id = hjc.third_station_id
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
0ab9afee
...
...
@@ -55,7 +55,12 @@
sn_code,
content,
start_time,
ts as `time`
start_time as startTimeDate,
`time`,
recover_time,
treatment,
time_long,
recover_time as recoverTimeString
FROM house_pv_data.td_hygf_jp_inverter_warn
<where>
<if
test=
"state != null and state != ''"
>
...
...
@@ -91,4 +96,43 @@
</where>
limit #{current},#{size}
</select>
<select
id=
"selectWarnListTotal"
resultType=
"int"
>
SELECT
count (1)
FROM house_pv_data.td_hygf_jp_inverter_warn
<where>
<if
test=
"state != null and state != ''"
>
AND state = #{state}
</if>
<if
test=
"level != null and level != ''"
>
AND level = #{level}
</if>
<if
test=
"minValue != null and minValue != ''"
>
time_long >= #{minvalue}
</if>
<if
test=
"maxValue != null and maxValue != ''"
>
AND time_long [
<![CDATA[<=]]>
]#{maxValue}
</if>
<if
test=
"snCode != null and snCode != ''"
>
AND sn_code = #{snCode}
</if>
<if
test=
"stationId.size >0 "
>
AND third_station_id in
<foreach
collection=
"stationId"
item=
"item"
open=
'('
close=
')'
separator=
","
>
#{item}
</foreach>
</if>
<if
test=
"startTime != null and startTime != ''"
>
AND start_time >= #{startTime}
</if>
<if
test=
"endTime != null and endTime != ''"
>
AND start_time [
<![CDATA[<=]]>
] #{endTime}
</if>
<if
test=
"content != null and content != ''"
>
AND content like #{content}
</if>
</where>
</select>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/TdHygfJpInverterWarnController.java
View file @
0ab9afee
...
...
@@ -236,7 +236,7 @@ public class TdHygfJpInverterWarnController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"户用光伏监盘逆变器报警表列表全部数据查询"
,
notes
=
"户用光伏监盘逆变器报警表列表全部数据查询"
)
@GetMapping
(
value
=
"/selectWarnList"
)
@UserLimits
public
ResponseModel
<
List
<
TdHygfJpInverterWarnDto
>>
selectWarnList
(
@RequestParam
(
required
=
false
)
String
state
,
public
ResponseModel
<
Page
<
TdHygfJpInverterWarnDto
>>
selectWarnList
(
@RequestParam
(
required
=
false
)
String
state
,
@RequestParam
(
required
=
false
)
String
level
,
@RequestParam
(
required
=
false
)
String
stationName
,
@RequestParam
(
required
=
false
)
String
minvalue
,
...
...
@@ -249,7 +249,8 @@ public class TdHygfJpInverterWarnController extends BaseController {
@RequestParam
(
required
=
false
)
Integer
size
,
@RequestParam
(
required
=
false
)
String
content
)
{
JpStationDto
reviewDto
=
new
JpStationDto
();
Page
<
TdHygfJpInverterWarnDto
>
result
=
new
Page
<>();
JpStationDto
reviewDto
=
new
JpStationDto
();
Map
<
String
,
String
>
nameMaps
=
new
HashMap
<>();
if
(
null
!=
stationName
){
reviewDto
.
setName
(
stationName
);
...
...
@@ -267,7 +268,11 @@ public class TdHygfJpInverterWarnController extends BaseController {
map
.
setStationName
(
nameMaps
.
get
(
map
.
getThirdStationId
()));
}
}
return
ResponseHelper
.
buildResponse
(
maps
);
result
.
setCurrent
(
current
);
result
.
setSize
(
size
);
result
.
setTotal
(
tdHygfJpInverterWarnServiceImpl
.
selectWarnListTotal
(
state
,
level
,
minvalue
,
maxValue
,
snCode
,
stationId
,
startTime
,
endTime
,
content
));
result
.
setRecords
(
maps
);
return
ResponseHelper
.
buildResponse
(
result
);
}
}
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 @
0ab9afee
...
...
@@ -133,4 +133,7 @@ public class TdHygfJpInverterWarnServiceImpl
public
List
<
TdHygfJpInverterWarnDto
>
selectWarnList
(
String
state
,
String
level
,
String
minvalue
,
String
maxValue
,
String
snCode
,
List
<
String
>
stationId
,
String
startTime
,
String
endTime
,
String
content
,
Integer
current
,
Integer
size
){
return
this
.
getBaseMapper
().
selectWarnList
(
state
,
level
,
minvalue
,
maxValue
,
snCode
,
stationId
,
startTime
,
endTime
,
content
,(
current
-
1
)*
size
,
size
);
}
public
int
selectWarnListTotal
(
String
state
,
String
level
,
String
minvalue
,
String
maxValue
,
String
snCode
,
List
<
String
>
stationId
,
String
startTime
,
String
endTime
,
String
content
){
return
this
.
getBaseMapper
().
selectWarnListTotal
(
state
,
level
,
minvalue
,
maxValue
,
snCode
,
stationId
,
startTime
,
endTime
,
content
);
}
}
\ No newline at end of file
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