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
9157358b
authored
Oct 25, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fixbug
parent
f8b24d5c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
3 deletions
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatBedServiceImpl.java
server-service/src/main/java/com/makeit/service/platform/alarm/impl/PlatAlarmRecordServiceImpl.java
View file @
9157358b
...
...
@@ -151,7 +151,16 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
if
(
StringUtils
.
isNotEmpty
(
param
.
getOrgId
()))
{
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
param
.
getOrgId
().
split
(
","
)));
}
List
<
String
>
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
orgIdList
=
choiceOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
}
return
new
LambdaQueryWrapper
<
PlatAlarmRecord
>().
ge
(
Objects
.
nonNull
(
param
.
getCreateDateFrom
()),
BaseEntity:
:
getCreateDate
,
param
.
getCreateDateFrom
())
.
eq
(
StringUtils
.
isNotBlank
(
param
.
getId
()),
BaseEntity:
:
getId
,
param
.
getId
())
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderServiceImpl.java
View file @
9157358b
...
...
@@ -117,7 +117,16 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
if
(
StringUtils
.
isNotEmpty
(
dto
.
getOrgId
()))
{
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
}
List
<
String
>
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
orgIdList
=
choiceOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
}
return
new
QueryWrapper
<
PlatElder
>().
lambda
()
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getName
()),
PlatElder:
:
getName
,
dto
.
getName
())
...
...
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatBedServiceImpl.java
View file @
9157358b
...
...
@@ -170,7 +170,16 @@ public class PlatBedServiceImpl extends ServiceImpl<PlatBedMapper, PlatBed> impl
if
(
StringUtil
.
isNotEmpty
(
dto
.
getOrgId
()))
{
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
}
List
<
String
>
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
orgIdList
=
choiceOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
}
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
}
return
baseMapper
.
selectBySpaceIdAndStatus
(
new
Page
<>(
pageReqDTO
.
getPage
(),
pageReqDTO
.
getLimit
()),
dto
,
orgIdList
);
}
...
...
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