Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
GeoFlyApi
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GeoFly
GeoFlyApi
Commits
7364de85
Commit
7364de85
authored
Jul 07, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai信息增加查询参数。
parent
830003e6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
sample/src/main/java/com/dji/sample/ai/model/param/AiInfoSearchParam.java
+6
-0
sample/src/main/java/com/dji/sample/ai/service/impl/AiInfoServiceImpl.java
+6
-0
No files found.
sample/src/main/java/com/dji/sample/ai/model/param/AiInfoSearchParam.java
View file @
7364de85
...
@@ -12,4 +12,10 @@ public class AiInfoSearchParam {
...
@@ -12,4 +12,10 @@ public class AiInfoSearchParam {
@JsonProperty
(
"device_sn"
)
@JsonProperty
(
"device_sn"
)
private
String
deviceSn
;
private
String
deviceSn
;
@JsonProperty
(
"warn_type"
)
private
String
warnType
;
@JsonProperty
(
"warn_event"
)
private
String
warnEvent
;
}
}
sample/src/main/java/com/dji/sample/ai/service/impl/AiInfoServiceImpl.java
View file @
7364de85
...
@@ -35,6 +35,12 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity>
...
@@ -35,6 +35,12 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity>
if
(
StringUtils
.
hasText
(
param
.
getDeviceSn
()))
{
if
(
StringUtils
.
hasText
(
param
.
getDeviceSn
()))
{
wrapper
.
eq
(
AiInfoEntity:
:
getDeviceSn
,
param
.
getDeviceSn
());
wrapper
.
eq
(
AiInfoEntity:
:
getDeviceSn
,
param
.
getDeviceSn
());
}
}
if
(
StringUtils
.
hasText
(
param
.
getWarnEvent
()))
{
wrapper
.
like
(
AiInfoEntity:
:
getWarnEvent
,
param
.
getWarnEvent
());
}
if
(
StringUtils
.
hasText
(
param
.
getWarnType
()))
{
wrapper
.
eq
(
AiInfoEntity:
:
getWarnType
,
param
.
getWarnType
());
}
Page
<
AiInfoEntity
>
pagination
=
this
.
page
(
new
Page
<>(
page
,
pageSize
),
wrapper
);
Page
<
AiInfoEntity
>
pagination
=
this
.
page
(
new
Page
<>(
page
,
pageSize
),
wrapper
);
List
<
AiInfoDTO
>
aiInfoDTOList
=
pagination
.
getRecords
().
stream
().
map
(
this
::
AiInfoEntityToDTO
)
List
<
AiInfoDTO
>
aiInfoDTOList
=
pagination
.
getRecords
().
stream
().
map
(
this
::
AiInfoEntityToDTO
)
...
...
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