Commit 15896f65 by songyinghui

feat: 月报周期

parent ab59fd66
......@@ -159,11 +159,14 @@ public class MaterialReportBuilder {
String bizDate = null;
if (MaterialReportType.WEEK.getCode().equals(reportType)) {
// 周报
bizDate = DateUtil.beginOfWeek(DateUtil.lastWeek()).toString("yyyy-MM-dd");
// bizDate = DateUtil.beginOfWeek(DateUtil.lastWeek()).toString("yyyy-MM-dd");
bizDate = DateUtil.beginOfWeek(new Date()).toString("yyyy-MM-dd");
} else {
// 月报
bizDate = DateUtil.beginOfMonth(DateUtil.lastMonth()).toString("yyyy-MM");
// bizDate = DateUtil.beginOfMonth(DateUtil.lastMonth()).toString("yyyy-MM");
bizDate = DateUtil.beginOfMonth(new Date()).toString("yyyy-MM");
}
return bizDate;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment