Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rpc-dj-pe-analysis
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 79c3381d
authored
Apr 01, 2026
by
林永健
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(jobs): 修复数据报告快照任务中的周期键设置问题
1 parent
f1b83e01
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/DataReportMonthlySnapshotJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/DataReportWeeklySnapshotJob.java
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/DataReportMonthlySnapshotJob.java
View file @
79c3381
...
@@ -68,6 +68,7 @@ public class DataReportMonthlySnapshotJob implements SimpleJob {
...
@@ -68,6 +68,7 @@ public class DataReportMonthlySnapshotJob implements SimpleJob {
String
periodKey
=
DateUtil
.
format
(
date
,
"yyyy'M'MM"
);
String
periodKey
=
DateUtil
.
format
(
date
,
"yyyy'M'MM"
);
log
.
debug
(
"构建上月周期键:日期={}, 结果={}"
,
date
,
periodKey
);
log
.
debug
(
"构建上月周期键:日期={}, 结果={}"
,
date
,
periodKey
);
req
.
setPeriodKey
(
periodKey
);
req
.
setPeriodStart
(
DateUtil
.
beginOfMonth
(
date
));
req
.
setPeriodStart
(
DateUtil
.
beginOfMonth
(
date
));
req
.
setPeriodEnd
(
DateUtil
.
endOfMonth
(
date
));
req
.
setPeriodEnd
(
DateUtil
.
endOfMonth
(
date
));
}
}
...
...
rpc-dj-pe-analysis/src/main/java/cn/com/glsx/dj/peanalysis/job/DataReportWeeklySnapshotJob.java
View file @
79c3381
...
@@ -68,6 +68,7 @@ public class DataReportWeeklySnapshotJob implements SimpleJob {
...
@@ -68,6 +68,7 @@ public class DataReportWeeklySnapshotJob implements SimpleJob {
String
periodKey
=
DateUtil
.
format
(
date
,
"yyyy'W'ww"
);
String
periodKey
=
DateUtil
.
format
(
date
,
"yyyy'W'ww"
);
log
.
debug
(
"构建上周周期键:日期={}, 结果={}"
,
date
,
periodKey
);
log
.
debug
(
"构建上周周期键:日期={}, 结果={}"
,
date
,
periodKey
);
req
.
setPeriodKey
(
periodKey
);
req
.
setPeriodStart
(
DateUtil
.
beginOfWeek
(
date
));
req
.
setPeriodStart
(
DateUtil
.
beginOfWeek
(
date
));
req
.
setPeriodEnd
(
DateUtil
.
endOfWeek
(
date
));
req
.
setPeriodEnd
(
DateUtil
.
endOfWeek
(
date
));
}
}
...
...
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