Sfoglia il codice sorgente

接团客户名单
生日验证处理

leiy 1 anno fa
parent
commit
2321097914

+ 2 - 1
OASystem/OASystem.Infrastructure/Repositories/Groups/TourClientListRepository.cs

@@ -167,6 +167,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                 var data = await _sqlSugar.SqlQueryable<TourClientListDetailsView>(sql).FirstAsync();
                 if (data != null) 
                 {
+
                     data.BirthDay = data.BirthDay.DateFormat("yyyy-MM-dd");
                     //data.IssueDt = data.IssueDt.DateFormat("yyyy-MM-dd");
                     //data.ExpiryDt = data.ExpiryDt.DateFormat("yyyy-MM-dd");
@@ -275,7 +276,7 @@ namespace OASystem.Infrastructure.Repositories.Groups
                     Pinyin = dto.Pinyin,
                     Phone = dto.Phone,
                     Sex = dto.Sex,
-                    BirthDay = dto.BirthDay == null ? null : Convert.ToDateTime(dto.BirthDay),
+                    BirthDay = dto.BirthDay == "" ? null : Convert.ToDateTime(dto.BirthDay),
                     Job = dto.Job,
                     CreateUserId = dto.UserId
                 };