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
1af52401
Commit
1af52401
authored
Jun 09, 2025
by
gdj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复任务id格式问题。
parent
f58fa42a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineJobServiceImpl.java
+2
-2
No files found.
sample/src/main/java/com/dji/sample/wayline/service/impl/WaylineJobServiceImpl.java
View file @
1af52401
...
@@ -95,7 +95,7 @@ public class WaylineJobServiceImpl extends ServiceImpl<IWaylineJobMapper, Waylin
...
@@ -95,7 +95,7 @@ public class WaylineJobServiceImpl extends ServiceImpl<IWaylineJobMapper, Waylin
}
}
// Immediate tasks, allocating time on the backend.
// Immediate tasks, allocating time on the backend.
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd
HH:mm:
ss"
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd
-HH-mm-
ss"
);
String
formattedDateTime
=
now
.
format
(
formatter
);
String
formattedDateTime
=
now
.
format
(
formatter
);
String
jobId
=
param
.
getName
()
+
"-"
+
formattedDateTime
+
"-"
+
UUID
.
randomUUID
().
toString
().
substring
(
0
,
4
);
String
jobId
=
param
.
getName
()
+
"-"
+
formattedDateTime
+
"-"
+
UUID
.
randomUUID
().
toString
().
substring
(
0
,
4
);
...
@@ -127,7 +127,7 @@ public class WaylineJobServiceImpl extends ServiceImpl<IWaylineJobMapper, Waylin
...
@@ -127,7 +127,7 @@ public class WaylineJobServiceImpl extends ServiceImpl<IWaylineJobMapper, Waylin
}
}
WaylineJobEntity
jobEntity
=
this
.
dto2Entity
(
parentJobOpt
.
get
());
WaylineJobEntity
jobEntity
=
this
.
dto2Entity
(
parentJobOpt
.
get
());
LocalDateTime
now
=
LocalDateTime
.
now
();
LocalDateTime
now
=
LocalDateTime
.
now
();
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd
HH:mm:
ss"
);
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd
-HH-mm-
ss"
);
String
formattedDateTime
=
now
.
format
(
formatter
);
String
formattedDateTime
=
now
.
format
(
formatter
);
jobEntity
.
setJobId
(
jobEntity
.
getName
()
+
"-"
+
formattedDateTime
+
"-"
+
UUID
.
randomUUID
().
toString
().
substring
(
0
,
4
));
jobEntity
.
setJobId
(
jobEntity
.
getName
()
+
"-"
+
formattedDateTime
+
"-"
+
UUID
.
randomUUID
().
toString
().
substring
(
0
,
4
));
jobEntity
.
setErrorCode
(
null
);
jobEntity
.
setErrorCode
(
null
);
...
...
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