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
6f09092b
Commit
6f09092b
authored
Apr 12, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加任务统计接口和今日任务接口2。
parent
26fb654f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineJobServiceImpl.java
+4
-0
No files found.
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineJobServiceImpl.java
View file @
6f09092b
...
...
@@ -196,10 +196,12 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
LocalDate
today
=
LocalDate
.
now
();
LocalDateTime
startOfDay
=
today
.
atStartOfDay
();
long
startTimestamp
=
startOfDay
.
toEpochSecond
(
ZoneOffset
.
UTC
);
startTimestamp
=
startTimestamp
*
1000
;
waylineJobQueryWrapper
.
ge
(
WaylineJobEntity:
:
getBeginTime
,
startTimestamp
);
// 今天结束时间:23:59:59
LocalDateTime
endOfDay
=
today
.
atTime
(
23
,
59
,
59
);
long
endTimestamp
=
endOfDay
.
toEpochSecond
(
ZoneOffset
.
UTC
);
endTimestamp
=
endTimestamp
*
1000
;
waylineJobQueryWrapper
.
le
(
WaylineJobEntity:
:
getBeginTime
,
endTimestamp
);
Page
<
WaylineJobEntity
>
pageData
=
mapper
.
selectPage
(
new
Page
<>(
page
,
pageSize
),
waylineJobQueryWrapper
);
...
...
@@ -401,6 +403,8 @@ public class WaylineJobServiceImpl implements IWaylineJobService {
// 查询任务
LambdaQueryWrapper
<
WaylineJobEntity
>
waylineJobQueryWrapper
=
new
LambdaQueryWrapper
<>();
startSecond
=
startSecond
*
1000
;
endSecond
=
endSecond
*
1000
;
waylineJobQueryWrapper
.
between
(
WaylineJobEntity:
:
getBeginTime
,
startSecond
,
endSecond
);
List
<
WaylineJobEntity
>
waylineJobList
=
this
.
mapper
.
selectList
(
waylineJobQueryWrapper
);
...
...
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