|
|
@@ -45,7 +45,7 @@ namespace OASystem.API.OAMethodLib.Quartz.Jobs
|
|
|
var now = DateTime.Now;
|
|
|
var lastMonth = now.AddMonths(-1);
|
|
|
var startDate = new DateTime(lastMonth.Year, lastMonth.Month, 1);
|
|
|
- var endDate = new DateTime(lastMonth.Year, lastMonth.Month, DateTime.DaysInMonth(lastMonth.Year, lastMonth.Month), 23, 59, 59);
|
|
|
+ var endDate = new DateTime(now.Year, now.Month, 1);
|
|
|
|
|
|
_logger.LogInformation($"开始生成绩效数据,时间范围:{startDate:yyyy-MM-dd HH:mm:ss} 至 {endDate:yyyy-MM-dd HH:mm:ss}");
|
|
|
|
|
|
@@ -109,7 +109,8 @@ namespace OASystem.API.OAMethodLib.Quartz.Jobs
|
|
|
{ "userId", user.Id.ToString() },
|
|
|
{ "start", startDate.ToString("yyyy-MM-dd HH:mm:ss") },
|
|
|
{ "end", endDate.ToString("yyyy-MM-dd HH:mm:ss") },
|
|
|
- { "createUserId", createUserId.ToString() }
|
|
|
+ { "createUserId", createUserId.ToString() },
|
|
|
+ { "isMonthData", "true" }
|
|
|
};
|
|
|
|
|
|
// 构建完整URL
|