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
c3b4c50b
authored
Oct 11, 2023
by
杨伟程
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
saas端--租户设备管理-查看-数据分析--周报报错
parent
7c65aeea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportWeekServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderDayReportWeekServiceImpl.java
View file @
c3b4c50b
...
...
@@ -384,13 +384,13 @@ public class PlatElderDayReportWeekServiceImpl implements PlatElderDayReportWeek
List
<
LocalDate
>
dateList
=
LocalDateTimeUtils
.
getDateSeries
(
weekStartDate
,
weekEndDate
);
String
deviceId
=
null
;
String
oriDeviceId
=
null
;
//
String oriDeviceId = null;
PlatDevice
platDevice
=
platElderRealTimeService
.
getBreathDevice
(
platElderIdDTO
.
getElderId
(),
platElderIdDTO
.
getDeviceId
());
if
(
platDevice
!=
null
)
{
deviceId
=
platDevice
.
getId
();
oriDeviceId
=
platDevice
.
getOriDeviceId
();
//
oriDeviceId = platDevice.getOriDeviceId();
}
LambdaQueryWrapper
<
PlatElderBreatheDayStat
>
lambdaQueryWrapper
=
new
QueryWrapper
<
PlatElderBreatheDayStat
>().
lambda
();
...
...
@@ -399,17 +399,17 @@ public class PlatElderDayReportWeekServiceImpl implements PlatElderDayReportWeek
lambdaQueryWrapper
.
le
(
PlatElderBreatheDayStat:
:
getDay
,
weekEndDate
);
String
finalDeviceId
=
deviceId
;
String
finalOriDeviceId
=
oriDeviceId
;
lambdaQueryWrapper
.
and
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getElderId
())
||
StringUtils
.
isNotBlank
(
finalDeviceId
)
||
StringUtils
.
isNotBlank
(
finalOriDeviceId
)
,
qw
->
{
//
String finalOriDeviceId = oriDeviceId;
lambdaQueryWrapper
.
and
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getElderId
())
||
StringUtils
.
isNotBlank
(
finalDeviceId
)
/*|| StringUtils.isNotBlank(finalOriDeviceId)*/
,
qw
->
{
if
(
StringUtils
.
isNotBlank
(
platElderIdDTO
.
getElderId
()))
{
qw
.
eq
(
PlatElderBreatheDayStat:
:
getElderId
,
platElderIdDTO
.
getElderId
());
}
if
(
StringUtils
.
isNotBlank
(
finalDeviceId
))
{
qw
.
or
().
eq
(
PlatElderBreatheDayStat:
:
getDeviceId
,
finalDeviceId
);
}
if
(
StringUtils
.
isNotBlank
(
finalOriDeviceId
))
{
qw
.
or
().
eq
(
PlatElderBreatheDayStat:
:
getOriDeviceId
,
finalOriDeviceId
);
}
//
if (StringUtils.isNotBlank(finalOriDeviceId)) {
//
qw.or().eq(PlatElderBreatheDayStat::getOriDeviceId, finalOriDeviceId);
//
}
});
...
...
@@ -417,7 +417,7 @@ public class PlatElderDayReportWeekServiceImpl implements PlatElderDayReportWeek
List
<
PlatElderBreatheDayStat
>
breatheDayStatList
=
platElderBreatheDayStatService
.
list
(
lambdaQueryWrapper
);
Map
<
LocalDate
,
PlatElderBreatheDayStat
>
map
=
StreamUtil
.
toMap
(
breatheDayStatList
,
PlatElderBreatheDayStat:
:
getDay
);
Map
<
LocalDate
,
PlatElderBreatheDayStat
>
map
=
StreamUtil
.
toMap
Dep
(
breatheDayStatList
,
PlatElderBreatheDayStat:
:
getDay
);
List
<
PlatElderRealTimeHeartRespiratoryWeekVO
>
voList
=
new
ArrayList
<>(
10
);
...
...
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