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
889da2c7
Commit
889da2c7
authored
Nov 07, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
td相关
parent
8d87161f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
51 deletions
+51
-51
TdInfoQueryController.java
...ot/module/jxiop/biz/controller/TdInfoQueryController.java
+7
-8
FanHealthIndex.xml
...iz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
+23
-22
PvHealthIndex.xml
...biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
+21
-21
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TdInfoQueryController.java
View file @
889da2c7
...
...
@@ -53,10 +53,10 @@ public class TdInfoQueryController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@
Ge
tMapping
(
value
=
"/getFanHealthIndexInfo"
)
@ApiOperation
(
httpMethod
=
"
GE
T"
,
value
=
"分页查询健康指数信息 - 风电"
,
notes
=
"分页查询健康指数信息 - 风电"
)
public
ResponseModel
<
Page
<
FanHealthIndex
>>
getFanHealthIndexInfo
(
@RequestBody
FanHealthIndexDto
dto
,
@RequestParam
String
analysisObjType
)
{
dto
.
setAnalysisObjType
(
analysisObjType
);
@
Pos
tMapping
(
value
=
"/getFanHealthIndexInfo"
)
@ApiOperation
(
httpMethod
=
"
POS
T"
,
value
=
"分页查询健康指数信息 - 风电"
,
notes
=
"分页查询健康指数信息 - 风电"
)
public
ResponseModel
<
Page
<
FanHealthIndex
>>
getFanHealthIndexInfo
(
@RequestBody
FanHealthIndexDto
dto
)
{
// TODO: 2023/11/7 时间减8
Page
<
FanHealthIndex
>
resultPage
=
new
Page
<>(
dto
.
getCurrent
(),
dto
.
getSize
());
dto
.
setCurrent
((
dto
.
getCurrent
()
-
1
)
*
dto
.
getSize
());
List
<
Map
<
String
,
String
>>
orderWeight
=
dto
.
getSorts
().
stream
().
sorted
(
Comparator
.
comparing
(
t
->
Integer
.
parseInt
(
t
.
get
(
"orderWeight"
)))).
collect
(
Collectors
.
toList
());
...
...
@@ -76,10 +76,9 @@ public class TdInfoQueryController {
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/getPvHealthIndexInfo"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询健康指数信息 - 光伏"
,
notes
=
"分页查询健康指数信息 - 光伏"
)
public
ResponseModel
<
Page
<
PvHealthIndex
>>
getPvHealthIndexInfo
(
@RequestBody
PvHealthIndexDto
dto
,
@RequestParam
String
analysisObjType
)
{
dto
.
setAnalysisObjType
(
analysisObjType
);
@PostMapping
(
value
=
"/getPvHealthIndexInfo"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"分页查询健康指数信息 - 光伏"
,
notes
=
"分页查询健康指数信息 - 光伏"
)
public
ResponseModel
<
Page
<
PvHealthIndex
>>
getPvHealthIndexInfo
(
@RequestBody
PvHealthIndexDto
dto
)
{
Page
<
PvHealthIndex
>
resultPage
=
new
Page
<>(
dto
.
getCurrent
(),
dto
.
getSize
());
dto
.
setCurrent
((
dto
.
getCurrent
()
-
1
)
*
dto
.
getSize
());
List
<
Map
<
String
,
String
>>
orderWeight
=
dto
.
getSorts
().
stream
().
sorted
(
Comparator
.
comparing
(
t
->
Integer
.
parseInt
(
t
.
get
(
"orderWeight"
)))).
collect
(
Collectors
.
toList
());
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanHealthIndex.xml
View file @
889da2c7
...
...
@@ -156,17 +156,17 @@
<select
id=
"getInfoByPage"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.FanHealthIndex"
>
SELECT * FROM fan_health_index_data
<where>
<if
test=
'dto.analysisObjType!= null'
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
'dto.analysisType!= null'
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
'dto.endDate!= null'
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
'dto.startDate!= null'
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
'dto.area!= null'
>
AND area = #{area}
</if>
<if
test=
'dto.number!= null'
>
AND `number` = #{dto.number}
</if>
<if
test=
'dto.pointName!= null'
>
AND point_name = #{dto.pointName}
</if>
<if
test=
'dto.station!= null'
>
AND station = #{dto.station}
</if>
<if
test=
'dto.healthLevel!= null'
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
'dto.subSystem!= null'
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
'dto.equipmentName!= null'
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.analysisObjType!= null and dto.analysisObjType!= ''"
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
"dto.analysisType!= null and dto.analysisType!= ''"
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.area!= null and dto.area!= ''"
>
AND area = #{area}
</if>
<if
test=
"dto.number!= null and dto.number!= ''"
>
AND `number` = #{dto.number}
</if>
<if
test=
"dto.pointName!= null and dto.pointName!= ''"
>
AND point_name = #{dto.pointName}
</if>
<if
test=
"dto.station!= null and dto.station!= ''"
>
AND station = #{dto.station}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
...
...
@@ -178,17 +178,18 @@
<select
id=
"getInfoByPageTotal"
resultType=
"java.lang.Integer"
>
SELECT count(1) FROM fan_health_index_data
<where>
<if
test=
'dto.analysisObjType!= null'
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
'dto.analysisType!= null'
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
'dto.endDate!= null'
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
'dto.startDate!= null'
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
'dto.area!= null'
>
AND area = #{area}
</if>
<if
test=
'dto.number!= null'
>
AND `number` = #{dto.number}
</if>
<if
test=
'dto.pointName!= null'
>
AND point_name = #{dto.pointName}
</if>
<if
test=
'dto.station!= null'
>
AND station = #{dto.station}
</if>
<if
test=
'dto.healthLevel!= null'
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
'dto.subSystem!= null'
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
'dto.equipmentName!= null'
>
AND equipment_name = #{dto.equipmentName}
</if>
<if
test=
"dto.analysisObjType!= null and dto.analysisObjType!= ''"
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
"dto.analysisType!= null and dto.analysisType!= ''"
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= '' "
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.area!= null and dto.area!= ''"
>
AND area = #{area}
</if>
<if
test=
"dto.number!= null and dto.number!= ''"
>
AND `number` = #{dto.number}
</if>
<if
test=
"dto.pointName!= null and dto.pointName!= ''"
>
AND point_name = #{dto.pointName}
</if>
<if
test=
"dto.station!= null and dto.station!= ''"
>
AND station = #{dto.station}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.subSystem!= null and dto.subSystem!= ''"
>
AND sub_system = #{dto.subSystem}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</where>
</select>
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/PvHealthIndex.xml
View file @
889da2c7
...
...
@@ -190,16 +190,16 @@
<select
id=
"getInfoByPage"
resultType=
"com.yeejoin.amos.boot.module.jxiop.biz.tdengine.PvHealthIndex"
>
SELECT * FROM pv_health_index_data
<where>
<if
test=
'dto.analysisObjType!= null'
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
'dto.analysisType!= null'
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
'dto.endDate!= null'
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
'dto.startDate!= null'
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
'dto.area!= null'
>
AND area = #{area}
</if>
<if
test=
'dto.number!= null'
>
AND `subarray` = #{dto.subarray}
</if>
<if
test=
'dto.pointName!= null'
>
AND point_name = #{dto.pointName}
</if>
<if
test=
'dto.station!= null'
>
AND station = #{dto.station}
</if>
<if
test=
'dto.healthLevel!= null'
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
'dto.equipmentName!= null'
>
AND equipment_name = #{dto.equipmentName}
<if
test=
"dto.analysisObjType!= null and dto.analysisObjType!= ''"
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
"dto.analysisType!= null and dto.analysisType!= ''"
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= ''"
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.area!= null and dto.area!= ''"
>
AND area = #{area}
</if>
<if
test=
"dto.subarray!= null and dto.subarray!= ''"
>
AND `subarray` = #{dto.subarray}
</if>
<if
test=
"dto.pointName!= null and dto.pointName!= ''"
>
AND point_name = #{dto.pointName}
</if>
<if
test=
"dto.station!= null and dto.station!= ''"
>
AND station = #{dto.station}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</where>
<if
test=
"dto.orderColumns != null and dto.orderColumns != ''"
>
...
...
@@ -211,17 +211,17 @@
<select
id=
"getInfoByPageTotal"
resultType=
"java.lang.Integer"
>
SELECT count(1) FROM fan_health_index_data
<where>
<if
test=
'dto.analysisObjType!= null'
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
'dto.analysisType!= null'
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
'dto.endDate!= null'
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
'dto.startDate!= null'
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
'dto.area!= null'
>
AND area = #{area}
</if>
<if
test=
'dto.number!= null'
>
AND `number` = #{dto.number
}
</if>
<if
test=
'dto.pointName!= null'
>
AND point_name = #{dto.pointName}
</if>
<if
test=
'dto.station!= null'
>
AND station = #{dto.station}
</if>
<if
test=
'dto.healthLevel!= null'
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
'dto.subSystem!= null'
>
AND sub_system = #{dto.subSystem}
</if>
<
if
test=
'dto.equipmentName!= null'
>
AND equipment_name = #{dto.equipmentName}
<
/if>
<if
test=
"dto.analysisObjType!= null and dto.analysisObjType!= ''"
>
analysis_obj_type = #{dto.analysisObjType}
</if>
<if
test=
"dto.analysisType!= null and dto.analysisType!= ''"
>
and analysis_type = #{dto.analysisType}
</if>
<if
test=
"dto.endDate!= null and dto.endDate!= ''"
>
and ts
<
= #{dto.endDate}
</if>
<if
test=
"dto.startDate!= null and dto.startDate!= ''"
>
and ts
>
= #{dto.startDate}
</if>
<if
test=
"dto.area!= null and dto.area!= ''"
>
AND area = #{area}
</if>
<if
test=
"dto.subarray!= null and dto.subarray!= ''"
>
AND `subarray` = #{dto.subarray
}
</if>
<if
test=
"dto.pointName!= null and dto.pointName!= ''"
>
AND point_name = #{dto.pointName}
</if>
<if
test=
"dto.station!= null and dto.station!= ''"
>
AND station = #{dto.station}
</if>
<if
test=
"dto.healthLevel!= null and dto.healthLevel!= ''"
>
AND health_level = #{dto.healthLevel}
</if>
<if
test=
"dto.equipmentName!= null and dto.equipmentName!= ''"
>
AND equipment_name = #{dto.equipmentName}
</if>
</where>
</select>
...
...
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