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
29587672
authored
Dec 04, 2023
by
huangjy
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
fix: 修复bug
parent
4ad23145
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
52 additions
and
25 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 @
29587672
...
@@ -164,17 +164,26 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
...
@@ -164,17 +164,26 @@ public class PlatAlarmRecordServiceImpl extends ServiceImpl<PlatAlarmRecordMappe
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
param
.
getOrgId
().
split
(
","
)));
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
param
.
getOrgId
().
split
(
","
)));
}
}
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
param
.
getType
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isEmpty
(
param
.
getOrgId
()
))
{
orgIdList
=
choiceOrgIdList
;
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
param
.
getOrgId
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isEmpty
(
param
.
getType
()))
{
}
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
param
.
getOrgId
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
param
.
getType
()))
{
orgIdList
.
add
(
"-1"
);
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
}
return
new
LambdaQueryWrapper
<
PlatAlarmRecord
>().
ge
(
Objects
.
nonNull
(
param
.
getCreateDateFrom
()),
BaseEntity:
:
getCreateDate
,
param
.
getCreateDateFrom
())
return
new
LambdaQueryWrapper
<
PlatAlarmRecord
>().
ge
(
Objects
.
nonNull
(
param
.
getCreateDateFrom
()),
BaseEntity:
:
getCreateDate
,
param
.
getCreateDateFrom
())
...
...
server-service/src/main/java/com/makeit/service/platform/elder/impl/PlatElderServiceImpl.java
View file @
29587672
...
@@ -129,19 +129,27 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
...
@@ -129,19 +129,27 @@ public class PlatElderServiceImpl extends ServiceImpl<PlatElderMapper, PlatElder
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
}
}
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
if
(
StringUtils
.
isNotEmpty
(
dto
.
getType
())
&&
StringUtils
.
isEmpty
(
dto
.
getOrgId
()
))
{
orgIdList
=
choiceOrgIdList
;
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
if
(
StringUtils
.
isNotEmpty
(
dto
.
getOrgId
())
&&
StringUtils
.
isEmpty
(
dto
.
getType
()))
{
}
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
if
(
StringUtils
.
isNotEmpty
(
dto
.
getOrgId
())
&&
StringUtils
.
isNotEmpty
(
dto
.
getType
()))
{
orgIdList
.
add
(
"-1"
);
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
}
return
new
QueryWrapper
<
PlatElder
>().
lambda
()
return
new
QueryWrapper
<
PlatElder
>().
lambda
()
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getName
()),
PlatElder:
:
getName
,
dto
.
getName
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getName
()),
PlatElder:
:
getName
,
dto
.
getName
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getPhone
()),
PlatElder:
:
getPhone
,
dto
.
getPhone
())
.
like
(
StringUtils
.
isNotBlank
(
dto
.
getPhone
()),
PlatElder:
:
getPhone
,
dto
.
getPhone
())
...
...
server-service/src/main/java/com/makeit/service/platform/space/impl/PlatBedServiceImpl.java
View file @
29587672
...
@@ -171,18 +171,28 @@ public class PlatBedServiceImpl extends ServiceImpl<PlatBedMapper, PlatBed> impl
...
@@ -171,18 +171,28 @@ public class PlatBedServiceImpl extends ServiceImpl<PlatBedMapper, PlatBed> impl
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
choiceOrgIdList
.
addAll
(
Lists
.
newArrayList
(
dto
.
getOrgId
().
split
(
","
)));
}
}
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
List
<
String
>
orgIdList
=
Lists
.
newArrayList
();
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
))
{
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
dto
.
getType
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isEmpty
(
dto
.
getOrgId
()
))
{
orgIdList
=
choiceOrgIdList
;
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
typeOrgIdList
;
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
dto
.
getOrgId
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isEmpty
(
dto
.
getType
()))
{
}
orgIdList
=
choiceOrgIdList
;
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
orgIdList
.
add
(
"-1"
);
}
}
}
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
if
(
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
dto
.
getOrgId
())
&&
com
.
makeit
.
utils
.
old
.
StringUtils
.
isNotEmpty
(
dto
.
getType
()))
{
orgIdList
.
add
(
"-1"
);
if
(
CollectionUtils
.
isNotEmpty
(
choiceOrgIdList
)
&&
CollectionUtils
.
isNotEmpty
(
typeOrgIdList
))
{
orgIdList
=
new
ArrayList
<>(
CollectionUtils
.
intersection
(
typeOrgIdList
,
choiceOrgIdList
));
if
(
CollectionUtils
.
isEmpty
(
orgIdList
))
{
orgIdList
.
add
(
"-1"
);
}
}
}
}
return
baseMapper
.
selectBySpaceIdAndStatus
(
new
Page
<>(
pageReqDTO
.
getPage
(),
pageReqDTO
.
getLimit
()),
dto
,
orgIdList
);
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