fix nullable.value问题,改为使用修改时间

This commit is contained in:
2025-05-22 14:43:01 +08:00
parent 081ab58659
commit 8581cb5190

View File

@@ -312,7 +312,7 @@ public class GainfoUpdateService : IGainfoUpdateService
{
try
{
var resignationDate = DateOnly.FromDateTime(gainfo.ResignationDate!.Value);
var resignationDate = DateOnly.FromDateTime(gainfo.ModifiedTime);
var workGridSchedules = await _dbContext.Queryable<WorkGridScheduleEntity>().Where(x => x.UserCode == gainfo.Code)
.Where(x => x.Date >= resignationDate)