Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
ba9a8282
Commit
ba9a8282
authored
Aug 23, 2024
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交预警确认状态分页
parent
5bfdd904
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
TDBigScreenAnalyseController.java
...le/jxiop/biz/controller/TDBigScreenAnalyseController.java
+5
-3
FanWaringRecordMapper.java
...oot/module/jxiop/biz/tdMapper2/FanWaringRecordMapper.java
+3
-2
FanWarningRecord.xml
.../src/main/resources/mapper/tdengine2/FanWarningRecord.xml
+6
-1
No files found.
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/controller/TDBigScreenAnalyseController.java
View file @
ba9a8282
...
@@ -590,7 +590,9 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -590,7 +590,9 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
@RequestParam
(
value
=
"warningName"
,
required
=
false
)
String
warningName
,
@RequestParam
(
value
=
"warningName"
,
required
=
false
)
String
warningName
,
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
,
@RequestParam
(
value
=
"stationId"
,
required
=
false
)
String
stationId
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"startDate"
,
required
=
false
)
String
startDate
,
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
)
{
@RequestParam
(
value
=
"endDate"
,
required
=
false
)
String
endDate
,
@RequestParam
(
value
=
"disposotionState"
,
required
=
false
)
String
disposotionState
)
{
String
syzGatewayId
=
""
;
String
syzGatewayId
=
""
;
if
(
StrUtil
.
isNotEmpty
(
stationId
))
{
if
(
StrUtil
.
isNotEmpty
(
stationId
))
{
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
StationBasic
stationBasic
=
stationBasicMapper
.
selectById
(
stationId
);
...
@@ -601,7 +603,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -601,7 +603,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
arae
=
"%"
+
arae
+
"%"
;
arae
=
"%"
+
arae
+
"%"
;
}
}
Integer
count
=
fanWaringRecordMapper
.
getEquipWarningInfoByPageCount
(
arae
,
station
,
stationType
,
warningName
,
Integer
count
=
fanWaringRecordMapper
.
getEquipWarningInfoByPageCount
(
arae
,
station
,
stationType
,
warningName
,
stationId
,
startDate
,
endDate
,
syzGatewayId
);
stationId
,
startDate
,
endDate
,
syzGatewayId
,
disposotionState
);
// 前端存在分页bug 此处限制分页后筛选导致页面超出问题
// 前端存在分页bug 此处限制分页后筛选导致页面超出问题
if
(
count
>
0
&&
current
>
(
count
/
10
+
1
))
{
if
(
count
>
0
&&
current
>
(
count
/
10
+
1
))
{
current
=
1
;
current
=
1
;
...
@@ -611,7 +613,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
...
@@ -611,7 +613,7 @@ public class TDBigScreenAnalyseController extends BaseController implements Appl
// stationType, (current - 1) * size, size, warningName, stationId, startDate,
// stationType, (current - 1) * size, size, warningName, stationId, startDate,
// endDate);
// endDate);
List
<
FanWarningRecord
>
idxBizFanWarningRecordIPage
=
fanWaringRecordMapper
.
getEquipWarningInfoByPage
(
arae
,
List
<
FanWarningRecord
>
idxBizFanWarningRecordIPage
=
fanWaringRecordMapper
.
getEquipWarningInfoByPage
(
arae
,
station
,
stationType
,
(
current
-
1
)
*
size
,
size
,
warningName
,
stationId
,
startDate
,
endDate
,
syzGatewayId
);
station
,
stationType
,
(
current
-
1
)
*
size
,
size
,
warningName
,
stationId
,
startDate
,
endDate
,
syzGatewayId
,
disposotionState
);
Page
<
FanWarningRecord
>
idxBizFanWarningRecordPage
=
new
Page
<>(
current
,
size
);
Page
<
FanWarningRecord
>
idxBizFanWarningRecordPage
=
new
Page
<>(
current
,
size
);
idxBizFanWarningRecordPage
.
setRecords
(
idxBizFanWarningRecordIPage
);
idxBizFanWarningRecordPage
.
setRecords
(
idxBizFanWarningRecordIPage
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/java/com/yeejoin/amos/boot/module/jxiop/biz/tdMapper2/FanWaringRecordMapper.java
View file @
ba9a8282
...
@@ -41,9 +41,10 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> {
...
@@ -41,9 +41,10 @@ public interface FanWaringRecordMapper extends BaseMapper<FanWarningRecord> {
@Param
(
"warningName"
)
String
warningName
,
@Param
(
"warningName"
)
String
warningName
,
@Param
(
"stationId"
)
String
stationId
,
@Param
(
"stationId"
)
String
stationId
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"syzGatewayId"
)
String
syzGatewayId
);
@Param
(
"endDate"
)
String
endDate
,
@Param
(
"syzGatewayId"
)
String
syzGatewayId
,
@Param
(
"disposotionState"
)
String
disposotionState
);
List
<
FanWarningRecord
>
getEquipWarningInfoByPage
(
String
arae
,
String
station
,
String
stationType
,
Integer
current
,
Integer
size
,
String
warningName
,
String
stationId
,
String
startDate
,
String
endDate
,
@Param
(
"syzGatewayId"
)
String
syzGatewayId
);
List
<
FanWarningRecord
>
getEquipWarningInfoByPage
(
String
arae
,
String
station
,
String
stationType
,
Integer
current
,
Integer
size
,
String
warningName
,
String
stationId
,
String
startDate
,
String
endDate
,
@Param
(
"syzGatewayId"
)
String
syzGatewayId
,
@Param
(
"disposotionState"
)
String
disposotionState
);
List
<
Map
<
String
,
Object
>>
getAllEquipAlarmInfoAnalysisByArea
(
String
araeCode
,
String
stationType
);
List
<
Map
<
String
,
Object
>>
getAllEquipAlarmInfoAnalysisByArea
(
String
araeCode
,
String
stationType
);
...
...
amos-boot-system-jxiop/amos-boot-module-jxiop-analyse-biz/src/main/resources/mapper/tdengine2/FanWarningRecord.xml
View file @
ba9a8282
...
@@ -381,6 +381,9 @@
...
@@ -381,6 +381,9 @@
<if
test=
"endDate != '' and endDate != null"
>
<if
test=
"endDate != '' and endDate != null"
>
and concat(#{endDate}, ' 23:59:59') >= a.recdate
and concat(#{endDate}, ' 23:59:59') >= a.recdate
</if>
</if>
<if
test=
"disposotionState != '' and disposotionState != null"
>
and a.disposotionstate = #{disposotionState}
</if>
</where>
</where>
order by recDate desc
order by recDate desc
limit #{current}, #{size}
limit #{current}, #{size}
...
@@ -446,7 +449,9 @@
...
@@ -446,7 +449,9 @@
<if
test=
"endDate != '' and endDate != null"
>
<if
test=
"endDate != '' and endDate != null"
>
and concat(#{endDate}, ' 23:59:59') >= a.recdate
and concat(#{endDate}, ' 23:59:59') >= a.recdate
</if>
</if>
<if
test=
"disposotionState != '' and disposotionState != null"
>
and a.disposotionstate = #{disposotionState}
</if>
</where>
) b
</where>
) b
</select>
</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