Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
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 9767174c
authored
Nov 19, 2019
by
xuxueli
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
调度中心移除SQL中的 "now()" 函数;集群部署时不再依赖DB时钟,仅需要保证调度中心应用节点时钟一致即可;
1 parent
71cf3f61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobRegistryMapper.xml
xxl-job-admin/src/main/resources/mybatis-mapper/XxlJobRegistryMapper.xml
View file @
9767174
...
...
@@ -19,7 +19,7 @@
t.update_time
</sql>
<select
id=
"findDead"
parameterType=
"java.
lang.Integer
"
resultType=
"java.lang.Integer"
>
<select
id=
"findDead"
parameterType=
"java.
util.HashMap
"
resultType=
"java.lang.Integer"
>
SELECT t.id
FROM xxl_job_registry AS t
WHERE t.update_time
<![CDATA[ < ]]>
DATE_ADD(#{nowTime},INTERVAL -#{timeout} SECOND)
...
...
@@ -33,7 +33,7 @@
</foreach>
</delete>
<select
id=
"findAll"
parameterType=
"java.
lang.Integer
"
resultMap=
"XxlJobRegistry"
>
<select
id=
"findAll"
parameterType=
"java.
util.HashMap
"
resultMap=
"XxlJobRegistry"
>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM xxl_job_registry AS t
WHERE t.update_time
<![CDATA[ > ]]>
DATE_ADD(#{nowTime},INTERVAL -#{timeout} SECOND)
...
...
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