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
212cf08f
authored
Dec 07, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 实时监测状态问题
parent
89b4ddbb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
saas-module/src/main/java/com/makeit/controller/device/SaasDeviceController.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
saas-module/src/main/java/com/makeit/controller/device/SaasDeviceController.java
View file @
212cf08f
...
@@ -43,6 +43,7 @@ public class SaasDeviceController {
...
@@ -43,6 +43,7 @@ public class SaasDeviceController {
@ApiOperation
(
"列表"
)
@ApiOperation
(
"列表"
)
@PostMapping
(
"page"
)
@PostMapping
(
"page"
)
@TenantIdIgnore
@TenantIdIgnore
@AuthIgnore
public
ApiResponseEntity
<
PageVO
<
PlatDeviceListVO
>>
page
(
@RequestBody
PageReqDTO
<
PlatDevice
>
pageReqDTO
)
{
public
ApiResponseEntity
<
PageVO
<
PlatDeviceListVO
>>
page
(
@RequestBody
PageReqDTO
<
PlatDevice
>
pageReqDTO
)
{
return
ApiResponseUtils
.
success
(
platDeviceService
.
pageSaas
(
pageReqDTO
));
return
ApiResponseUtils
.
success
(
platDeviceService
.
pageSaas
(
pageReqDTO
));
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
View file @
212cf08f
...
@@ -325,7 +325,6 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
...
@@ -325,7 +325,6 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
JSONObject
jsonObject
=
JSON
.
parseObject
(
brResult
);
JSONObject
jsonObject
=
JSON
.
parseObject
(
brResult
);
String
person
=
jsonObject
.
getString
(
"person"
);
String
person
=
jsonObject
.
getString
(
"person"
);
String
personState
=
jsonObject
.
getString
(
"personState"
);
String
personState
=
jsonObject
.
getString
(
"personState"
);
log
.
info
(
"当前人员人员状态:{}"
,
person
);
if
(
StringUtils
.
equals
(
person
,
"1"
))
{
if
(
StringUtils
.
equals
(
person
,
"1"
))
{
// 在床运动
// 在床运动
if
(
StringUtils
.
equals
(
personState
,
"1"
))
{
if
(
StringUtils
.
equals
(
personState
,
"1"
))
{
...
@@ -334,7 +333,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
...
@@ -334,7 +333,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
return
platElderRealTimeNowVO
;
return
platElderRealTimeNowVO
;
}
}
// 在床静息
// 在床静息
if
(
StringUtils
.
equals
(
personState
,
"2"
)
||
StringUtils
.
equals
(
personState
,
"
2
"
))
{
if
(
StringUtils
.
equals
(
personState
,
"2"
)
||
StringUtils
.
equals
(
personState
,
"
3
"
))
{
log
.
info
(
"当前属于在床静息:"
+
platElderIdDTO
.
getElderId
());
log
.
info
(
"当前属于在床静息:"
+
platElderIdDTO
.
getElderId
());
platElderRealTimeNowVO
.
setStatus
(
PlatElderRealtimeReportEnum
.
NowStatus
.
BED
.
getValue
());
platElderRealTimeNowVO
.
setStatus
(
PlatElderRealtimeReportEnum
.
NowStatus
.
BED
.
getValue
());
return
platElderRealTimeNowVO
;
return
platElderRealTimeNowVO
;
...
...
server-service/src/main/resources/mappers/PlatDeviceMapper.xml
View file @
212cf08f
...
@@ -43,14 +43,12 @@
...
@@ -43,14 +43,12 @@
<if
test=
"param.tenantId != null and param.tenantId != ''"
>
<if
test=
"param.tenantId != null and param.tenantId != ''"
>
and pd.tenant_id = #{param.tenantId}
and pd.tenant_id = #{param.tenantId}
</if>
</if>
<choose>
<if
test=
"param.active !=null and param.active == 1"
>
<when
test=
"param.active !=null and param.active !='' and param.active == 1"
>
and pd.device_license is not null
and pd.device_license is not null
</if>
</when>
<if
test=
"param.active !=null and param.active == 0"
>
<when
test=
"param.active !=null and param.active !='' and param.active == 0"
>
and pd.device_license is null
and pd.device_license is null
</if>
</when>
</choose>
<if
test=
"param.orgIds != null and param.orgIds.size() > 0 "
>
<if
test=
"param.orgIds != null and param.orgIds.size() > 0 "
>
AND pd.org_id in
AND pd.org_id in
<foreach
collection=
"param.orgIds"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
<foreach
collection=
"param.orgIds"
item=
"item"
separator=
","
open=
"("
close=
")"
index=
""
>
...
...
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