Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-rest-admin-job-archetype
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 842c26e3
authored
May 01, 2021
by
fz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.车钥匙过期时间任务每天凌晨1点执行
1 parent
93c0a383
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/SmartCarKeyExpireTimeFixJob.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/service/Impl/SceneService.java
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/job/SmartCarKeyExpireTimeFixJob.java
View file @
842c26e
...
@@ -21,7 +21,7 @@ import java.util.Date;
...
@@ -21,7 +21,7 @@ import java.util.Date;
*/
*/
@Slf4j
@Slf4j
@Component
@Component
@ElasticSimpleJob
(
jobName
=
"SmartCarKeyExpireTimeFixJob"
,
cron
=
"
1/59 * *
* * ?"
)
@ElasticSimpleJob
(
jobName
=
"SmartCarKeyExpireTimeFixJob"
,
cron
=
"
0 0 1
* * ?"
)
public
class
SmartCarKeyExpireTimeFixJob
implements
SimpleJob
{
public
class
SmartCarKeyExpireTimeFixJob
implements
SimpleJob
{
@Autowired
@Autowired
private
SmartVehicleBlueShareKeyService
shareKeyService
;
private
SmartVehicleBlueShareKeyService
shareKeyService
;
...
...
glsx-rest-admin-job/src/main/java/cn/com/glsx/smartdevice/service/Impl/SceneService.java
View file @
842c26e
...
@@ -238,7 +238,6 @@ public class SceneService {
...
@@ -238,7 +238,6 @@ public class SceneService {
long
dateConditionlong
=
df
.
parse
(
dateCondition
).
getTime
();
long
dateConditionlong
=
df
.
parse
(
dateCondition
).
getTime
();
long
datenowlong
=
df
.
parse
(
datenow
).
getTime
();
long
datenowlong
=
df
.
parse
(
datenow
).
getTime
();
boolean
time_result
=
ELogic
.
getDateByCode
(
Integer
.
valueOf
(
select
),
dateConditionlong
,
datenowlong
);
boolean
time_result
=
ELogic
.
getDateByCode
(
Integer
.
valueOf
(
select
),
dateConditionlong
,
datenowlong
);
log
.
info
(
"时间条件结果,select:"
+
select
+
"===time_condition:"
+
dateConditionlong
+
"===time_now:"
+
datenowlong
+
"===result:"
+
time_result
+
"===conditionType:"
+
conditionType
+
"===id:"
+
condition
.
getId
());
return
time_result
;
return
time_result
;
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment