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
9881ac69
authored
Dec 21, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix:修复bug
parent
19570feb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportDayServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderReportMonthServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportDayServiceImpl.java
View file @
9881ac69
...
@@ -258,7 +258,6 @@ public class PlatElderDayReportDayServiceImpl implements PlatElderDayReportDaySe
...
@@ -258,7 +258,6 @@ public class PlatElderDayReportDayServiceImpl implements PlatElderDayReportDaySe
@Override
@Override
public
List
<
PlatElderRealTimeHeartRespiratoryVO
>
heartRespiratory
(
PlatElderReportDTO
platElderIdDTO
)
{
public
List
<
PlatElderRealTimeHeartRespiratoryVO
>
heartRespiratory
(
PlatElderReportDTO
platElderIdDTO
)
{
PlatDevice
platDevice
=
platElderRealTimeService
.
getBreathDevice
(
platElderIdDTO
.
getElderId
(),
platElderIdDTO
.
getDeviceId
());
PlatDevice
platDevice
=
platElderRealTimeService
.
getBreathDevice
(
platElderIdDTO
.
getElderId
(),
platElderIdDTO
.
getDeviceId
());
if
(
platDevice
==
null
)
{
if
(
platDevice
==
null
)
{
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderRealTimeServiceImpl.java
View file @
9881ac69
...
@@ -103,6 +103,11 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
...
@@ -103,6 +103,11 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
if
(
StringUtils
.
isNotBlank
(
deviceId
))
{
if
(
StringUtils
.
isNotBlank
(
deviceId
))
{
platDevice
=
platDeviceService
.
getById
(
deviceId
);
platDevice
=
platDeviceService
.
getById
(
deviceId
);
if
(
platDevice
==
null
)
{
platDevice
=
platDeviceService
.
getOne
(
new
QueryWrapper
<
PlatDevice
>().
lambda
()
.
eq
(
PlatDevice:
:
getOriDeviceId
,
deviceId
).
last
(
"limit 1"
));
}
}
}
return
platDevice
;
return
platDevice
;
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderReportMonthServiceImpl.java
View file @
9881ac69
...
@@ -94,7 +94,7 @@ public class PlatElderReportMonthServiceImpl extends ServiceImpl<PlatElderReport
...
@@ -94,7 +94,7 @@ public class PlatElderReportMonthServiceImpl extends ServiceImpl<PlatElderReport
List
<
PlatElderReportMonth
>
monthList
=
list
(
new
QueryWrapper
<
PlatElderReportMonth
>().
lambda
()
List
<
PlatElderReportMonth
>
monthList
=
list
(
new
QueryWrapper
<
PlatElderReportMonth
>().
lambda
()
.
eq
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getElderId
()),
PlatElderReportMonth:
:
getElderId
,
platElderIdDTO
.
getElderId
())
.
eq
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getElderId
()),
PlatElderReportMonth:
:
getElderId
,
platElderIdDTO
.
getElderId
())
.
eq
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getDeviceId
()),
PlatElderReportMonth:
:
getBreatheDeviceId
,
platElderIdDTO
.
getDeviceId
())
.
eq
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getDeviceId
()),
PlatElderReportMonth:
:
getBreathe
Ori
DeviceId
,
platElderIdDTO
.
getDeviceId
())
.
ge
(
PlatElderReportMonth:
:
getDay
,
start
)
.
ge
(
PlatElderReportMonth:
:
getDay
,
start
)
.
le
(
PlatElderReportMonth:
:
getDay
,
end
)
.
le
(
PlatElderReportMonth:
:
getDay
,
end
)
.
orderByAsc
(
PlatElderReportMonth:
:
getDay
)
.
orderByAsc
(
PlatElderReportMonth:
:
getDay
)
...
...
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