Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
黄嘉阳
/
iot-platform-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
b473e656
authored
Dec 13, 2023
by
汪志阳
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:bug修改
parent
9f1f7f07
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
server-module/src/main/java/com/makeit/module/controller/children/alarm/PlatAlarmRecordChildrenController.java
server-module/src/main/java/com/makeit/module/controller/children/alarm/PlatAlarmRecordChildrenController.java
View file @
b473e656
...
@@ -15,7 +15,6 @@ import com.makeit.service.platform.alarm.PlatAlarmRecordService;
...
@@ -15,7 +15,6 @@ import com.makeit.service.platform.alarm.PlatAlarmRecordService;
import
com.makeit.vo.platform.alarm.PlatAlarmRecordVO
;
import
com.makeit.vo.platform.alarm.PlatAlarmRecordVO
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
@@ -39,7 +38,7 @@ public class PlatAlarmRecordChildrenController {
...
@@ -39,7 +38,7 @@ public class PlatAlarmRecordChildrenController {
//只能看到发给关联的长者告警
//只能看到发给关联的长者告警
PageVO
<
PlatAlarmRecordVO
>
result
=
platAlarmRecordService
.
childrenPage
(
dto
);
PageVO
<
PlatAlarmRecordVO
>
result
=
platAlarmRecordService
.
childrenPage
(
dto
);
Map
<
String
,
Object
>
resMap
=
Maps
.
newHashMap
();
Map
<
String
,
Object
>
resMap
=
Maps
.
newHashMap
();
boolean
b
=
result
.
getList
().
stream
().
anyMatch
(
p
->
StringUtils
.
equals
(
CommonEnum
.
NO
.
getValue
(),
p
.
getWechatReadFlag
()));
boolean
b
=
result
.
getList
().
stream
().
anyMatch
(
p
->
!
CommonEnum
.
YES
.
getValue
().
equals
(
p
.
getWechatReadFlag
()));
resMap
.
put
(
"wechatReadFlag"
,
b
);
resMap
.
put
(
"wechatReadFlag"
,
b
);
resMap
.
put
(
"page"
,
result
);
resMap
.
put
(
"page"
,
result
);
return
ApiResponseUtils
.
success
(
resMap
);
return
ApiResponseUtils
.
success
(
resMap
);
...
...
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