sunpengfei
2025-08-19 6f450ffa6628d206d4f60284e16e84e4adbcd789
FlexJobApi.Core/Jobs/CalcUserAgeByIdCardJob.cs
@@ -24,11 +24,18 @@
            var enities = await rep.AsQueryable()
                .Where(it => it.Type == EnumUserType.Personal && it.Identity != null && it.Identity != "")
                .ToListAsync(stoppingToken);
            if (enities.IsNotNull())
            {
            foreach (var entity in enities)
            {
                var age = entity.Identity.GetAge();
                    if (age.HasValue)
                    {
                entity.Age = age;
            }
        }
                await rep.UpdateNowAsync(enities);
            }
        }
    }
}