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
1c41e359
Commit
1c41e359
authored
Sep 21, 2023
by
wujiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询详情
parent
7b2de331
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
1 deletion
+33
-1
TdHygfJpInverterWarnDto.java
...mos/boot/module/hygf/api/dto/TdHygfJpInverterWarnDto.java
+2
-0
TdHygfJpInverterWarnMapper.java
...e/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
+1
-1
TdHygfJpInverterWarnMapper.xml
.../resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
+9
-0
TdHygfJpInverterWarnController.java
...e/hygf/biz/controller/TdHygfJpInverterWarnController.java
+13
-0
TdHygfJpInverterWarnServiceImpl.java
...ygf/biz/service/impl/TdHygfJpInverterWarnServiceImpl.java
+8
-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 @
1c41e359
...
...
@@ -53,6 +53,8 @@ public class TdHygfJpInverterWarnDto {
@ApiModelProperty
(
value
=
"时间"
)
private
Long
time
;
private
Long
createdTime
;
private
List
<
String
>
stationIds
;
private
List
<
String
>
states
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/tdenginemapper/TdHygfJpInverterWarnMapper.java
View file @
1c41e359
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
tdenginemapper
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.JpStationDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto
;
...
...
@@ -25,4 +24,5 @@ public interface TdHygfJpInverterWarnMapper extends BaseMapper<TdHygfJpInverterW
List
<
TdHygfJpInverterWarnDto
>
list
(
@Param
(
"param"
)
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
);
TdHygfJpInverterWarnDto
getByTime
(
@Param
(
"createdTime"
)
long
createdTime
);
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/tdengine/TdHygfJpInverterWarnMapper.xml
View file @
1c41e359
...
...
@@ -33,4 +33,13 @@
</if>
</where>
</select>
<select
id=
"getByTime"
resultType=
"com.yeejoin.amos.boot.module.hygf.api.dto.TdHygfJpInverterWarnDto"
>
SELECT * FROM house_pv_data.td_hygf_jp_inverter_warn
<where>
<if
test=
"createdTime!=null"
>
AND created_time = #{createdTime}
</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 @
1c41e359
...
...
@@ -108,6 +108,19 @@ public class TdHygfJpInverterWarnController extends BaseController {
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"time/{createdTime}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个户用光伏监盘逆变器报警表"
,
notes
=
"根据sequenceNbr查询单个户用光伏监盘逆变器报警表"
)
public
ResponseModel
<
TdHygfJpInverterWarnDto
>
selectCreatedTime
(
@PathVariable
Long
createdTime
)
{
return
ResponseHelper
.
buildResponse
(
tdHygfJpInverterWarnServiceImpl
.
queryByCreatedTime
(
createdTime
));
}
/**
* 列表分页查询
*
* @param current 当前页
...
...
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 @
1c41e359
...
...
@@ -60,4 +60,11 @@ public class TdHygfJpInverterWarnServiceImpl
public
List
<
TdHygfJpInverterWarnDto
>
queryForTdHygfJpInverterWarnList
()
{
return
this
.
queryForList
(
""
,
false
);
}
public
TdHygfJpInverterWarnDto
queryByCreatedTime
(
long
createdTime
)
{
Map
map
=
new
HashMap
<>();
map
.
put
(
"created_time"
,
createdTime
);
TdHygfJpInverterWarnDto
tdHygfJpInverterWarnDto
=
this
.
baseMapper
.
getByTime
(
createdTime
);
return
tdHygfJpInverterWarnDto
;
}
}
\ 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