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
eb464233
Commit
eb464233
authored
Jul 08, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ai信息增加查询参数3。
parent
a52e367f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
1 deletions
+16
-1
sample/src/main/java/com/dji/sample/ai/model/dto/AiInfoDTO.java
+5
-0
sample/src/main/java/com/dji/sample/ai/model/entity/AiInfoEntity.java
+5
-0
sample/src/main/java/com/dji/sample/ai/model/param/AiInfoSearchParam.java
+2
-0
sample/src/main/java/com/dji/sample/ai/service/impl/AiInfoServiceImpl.java
+3
-0
sample/src/main/java/com/dji/sample/ai/service/impl/SdkAiInfoServiceImpl.java
+1
-1
No files found.
sample/src/main/java/com/dji/sample/ai/model/dto/AiInfoDTO.java
View file @
eb464233
...
...
@@ -61,4 +61,9 @@ public class AiInfoDTO implements Serializable {
*/
private
String
json
;
/**
* 算法类型
*/
private
String
algorithmType
;
}
sample/src/main/java/com/dji/sample/ai/model/entity/AiInfoEntity.java
View file @
eb464233
...
...
@@ -62,4 +62,9 @@ public class AiInfoEntity implements Serializable {
*/
private
String
json
;
/**
* 算法类型
*/
private
String
algorithmType
;
}
sample/src/main/java/com/dji/sample/ai/model/param/AiInfoSearchParam.java
View file @
eb464233
...
...
@@ -24,5 +24,7 @@ public class AiInfoSearchParam {
@JsonProperty
(
"end_warn_time"
)
private
Long
endWarnTime
;
@JsonProperty
(
"algorithm_type"
)
private
String
algorithmType
;
}
sample/src/main/java/com/dji/sample/ai/service/impl/AiInfoServiceImpl.java
View file @
eb464233
...
...
@@ -43,6 +43,9 @@ public class AiInfoServiceImpl extends ServiceImpl<IAiInfoMapper, AiInfoEntity>
if
(
StringUtils
.
hasText
(
param
.
getWarnType
()))
{
wrapper
.
eq
(
AiInfoEntity:
:
getWarnType
,
param
.
getWarnType
());
}
if
(
StringUtils
.
hasText
(
param
.
getAlgorithmType
()))
{
wrapper
.
eq
(
AiInfoEntity:
:
getAlgorithmType
,
param
.
getAlgorithmType
());
}
if
(!
ObjectUtils
.
isEmpty
(
param
.
getStartWarnTime
()))
{
wrapper
.
ge
(
AiInfoEntity:
:
getWarnTime
,
param
.
getStartWarnTime
());
}
...
...
sample/src/main/java/com/dji/sample/ai/service/impl/SdkAiInfoServiceImpl.java
View file @
eb464233
...
...
@@ -50,7 +50,7 @@ public class SdkAiInfoServiceImpl extends AbstractAiInfoService {
aiInfoEntity
.
setWarnEvent
(
jsonData
.
get
(
"warn_event"
).
asText
());
aiInfoEntity
.
setWarnTime
(
jsonData
.
get
(
"warn_time"
).
asLong
());
aiInfoEntity
.
setImageUrl
(
jsonData
.
get
(
"image_url"
).
asText
());
aiInfoEntity
.
setWarnLocation
(
jsonData
.
get
(
"warn_
L
ocation"
).
asText
());
aiInfoEntity
.
setWarnLocation
(
jsonData
.
get
(
"warn_
l
ocation"
).
asText
());
JsonNode
obj
=
jsonData
.
get
(
"obj"
);
if
(
obj
!=
null
)
{
aiInfoEntity
.
setJson
(
obj
.
toString
());
...
...
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