fix birthday nullable

This commit is contained in:
2025-02-08 17:23:40 +08:00
parent 5746649e06
commit 565692b045
6 changed files with 20 additions and 9 deletions

View File

@@ -45,8 +45,13 @@ public class GainfoCurrentResponse
/// <summary>
/// 出生日期/生日
/// </summary>
[JsonConverter(typeof(ToDateJsonConverter))]
public DateTime Birthday { get; set; }
public string Birthday
{
get { return OriginalBirthday.HasValue ? OriginalBirthday.Value.ToString("yyyy-MM-dd") : "0000-00-00"; }
}
public DateTime? OriginalBirthday { get; set; }
/// <summary>
/// 厂区编码