This commit is contained in:
gcw_MV9p2JJN 2025-09-10 16:46:15 +08:00
parent d7fef6a9fa
commit 7e653e807a

View File

@ -558,6 +558,10 @@ namespace DOAN.Service.MES.product
//获取周的日期开始到结束
var WeekStartAndEnd = Context.Queryable<ProWeeklyPlan>().Where(it => it.PlanYear == year && it.PlanWeek == week)
.Select(it => new { it.PlanStartDate, it.PlanEndDate }).First();
if(WeekStartAndEnd == null)
{
return result;
}
DateTime WeekStartDate = WeekStartAndEnd.PlanStartDate;
DateTime WeekEndDate = WeekStartAndEnd.PlanEndDate;
//