Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xxl-job
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘晓滨
xxl-job
Commits
fe27cc40
Commit
fe27cc40
authored
Dec 03, 2018
by
刘晓滨
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_1204_cy' into 'master'
增加DateUtil See merge request
!3
parents
19e73f7b
e5224acf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
pom.xml
xxl-job-core/pom.xml
+13
-0
ConstantVar.java
...core/src/main/java/com/xxl/job/core/util/ConstantVar.java
+4
-2
DateUtil.java
...ob-core/src/main/java/com/xxl/job/core/util/DateUtil.java
+9
-0
No files found.
xxl-job-core/pom.xml
View file @
fe27cc40
...
@@ -50,6 +50,19 @@
...
@@ -50,6 +50,19 @@
<version>
${spring.version}
</version>
<version>
${spring.version}
</version>
<scope>
provided
</scope>
<scope>
provided
</scope>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpclient -->
<dependency>
<groupId>
org.apache.httpcomponents
</groupId>
<artifactId>
httpclient
</artifactId>
<version>
4.5.6
</version>
</dependency>
<dependency>
<groupId>
org.slf4j
</groupId>
<artifactId>
slf4j-nop
</artifactId>
<version>
1.7.2
</version>
</dependency>
</dependencies>
</dependencies>
...
...
xxl-job-core/src/main/java/com/xxl/job/core/util/ConstantVar.java
View file @
fe27cc40
...
@@ -4,8 +4,10 @@ public class ConstantVar {
...
@@ -4,8 +4,10 @@ public class ConstantVar {
public
static
final
String
MASTER_URL
=
"https://www.weixiaotong.com.cn/weixt/api/"
;
public
static
final
String
MASTER_URL
=
"https://www.weixiaotong.com.cn/weixt/api/"
;
public
static
final
String
DE
VELOP_URL
=
"https://weixt.spacetech.com.cn:8090
/weixt/api/"
;
public
static
final
String
DE
MO_URL
=
"https://demo.spacetech.com.cn
/weixt/api/"
;
public
static
final
String
DEMO_URL
=
"http://demo.spacetech.com.cn/weixt/api/"
;
public
static
final
String
DEVELOP_URL
=
"http://weixt.spacetech.com.cn:8090/weixt/api/"
;
public
static
final
String
CITY
=
"330000330400,330000330500"
;
// 嘉兴,湖州
}
}
xxl-job-core/src/main/java/com/xxl/job/core/util/DateUtil.java
View file @
fe27cc40
...
@@ -2838,4 +2838,12 @@ public class DateUtil {
...
@@ -2838,4 +2838,12 @@ public class DateUtil {
return
(
second
/
3600
>
0
?
hour
+
":"
:
""
)
+
min
+
"'"
+
sec
+
"''"
;
return
(
second
/
3600
>
0
?
hour
+
":"
:
""
)
+
min
+
"'"
+
sec
+
"''"
;
}
}
public
static
String
makeYesterdayStr
()
{
Date
date
=
getCurrentTimeDate
();
Long
yesterday
=
date
.
getTime
()
-
1000
*
60
*
60
*
24L
;
date
.
setTime
(
yesterday
);
String
dateStr
=
DateUtil
.
dateToString
(
date
,
DateUtil
.
DATETIME_FORMAT
);
return
dateStr
;
}
}
}
\ No newline at end of file
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