Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
f29e261a
Commit
f29e261a
authored
May 23, 2024
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改过去小程序分析数据本周、本月
parent
d7fcce8e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
ch-core/src/main/java/com/wwdz/ch/core/util/TimeUtil.java
ch-core/src/main/java/com/wwdz/ch/core/util/TimeUtil.java
+0
-5
No files found.
ch-core/src/main/java/com/wwdz/ch/core/util/TimeUtil.java
View file @
f29e261a
...
@@ -45,10 +45,7 @@ public final class TimeUtil {
...
@@ -45,10 +45,7 @@ public final class TimeUtil {
public
static
Pair
getCurrentWeekDate
()
{
public
static
Pair
getCurrentWeekDate
()
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
Calendar
calStart
=
Calendar
.
getInstance
();
Calendar
calStart
=
Calendar
.
getInstance
();
Calendar
calEnd
=
Calendar
.
getInstance
();
calStart
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
MONDAY
);
calStart
.
set
(
Calendar
.
DAY_OF_WEEK
,
Calendar
.
MONDAY
);
/* calEnd.setFirstDayOfWeek(Calendar.MONDAY);
calEnd.set(Calendar.DAY_OF_WEEK, calEnd.getFirstDayOfWeek() + 6);*/
String
beginDate
=
format
.
format
(
calStart
.
getTime
());
String
beginDate
=
format
.
format
(
calStart
.
getTime
());
String
endDate
=
format
.
format
(
new
Date
());
String
endDate
=
format
.
format
(
new
Date
());
return
Pair
.
of
(
beginDate
,
endDate
);
return
Pair
.
of
(
beginDate
,
endDate
);
...
@@ -94,9 +91,7 @@ public final class TimeUtil {
...
@@ -94,9 +91,7 @@ public final class TimeUtil {
public
static
Pair
getCurrentMonthDate
()
{
public
static
Pair
getCurrentMonthDate
()
{
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
SimpleDateFormat
format
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
Calendar
calStart
=
Calendar
.
getInstance
();
Calendar
calStart
=
Calendar
.
getInstance
();
Calendar
calEnd
=
Calendar
.
getInstance
();
calStart
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
calStart
.
set
(
Calendar
.
DAY_OF_MONTH
,
1
);
// calEnd.set(Calendar.DAY_OF_MONTH, calEnd.getActualMaximum(Calendar.DAY_OF_MONTH));
String
beginDate
=
format
.
format
(
calStart
.
getTime
());
String
beginDate
=
format
.
format
(
calStart
.
getTime
());
String
endDate
=
format
.
format
(
new
Date
());
String
endDate
=
format
.
format
(
new
Date
());
return
Pair
.
of
(
beginDate
,
endDate
);
return
Pair
.
of
(
beginDate
,
endDate
);
...
...
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