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
831d99dd
authored
Dec 13, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge remote-tracking branch 'origin/dev' into dev
parents
fac218bd
b473e656
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 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 @
831d99dd
...
@@ -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,8 +38,8 @@ public class PlatAlarmRecordChildrenController {
...
@@ -39,8 +38,8 @@ 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
(
"
todo
Flag"
,
b
);
resMap
.
put
(
"
wechatRead
Flag"
,
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