diff --git a/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs b/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs index a2a85b6..d5d6bd6 100644 --- a/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs +++ b/src/Shentun.Peis.Application/RegisterChecks/RegisterCheckAppService.cs @@ -698,11 +698,20 @@ namespace Shentun.Peis.RegisterChecks bool isUpdate = false; if (!string.IsNullOrWhiteSpace(checkDoctorEnt.CheckDoctorId)) { + if (registerCheckEnt.CheckDate == null) + { + registerCheckEnt.CheckDate = DateTime.Now; + } registerCheckEnt.CheckDoctorId = checkDoctorEnt.CheckDoctorId; isUpdate = true; } if (!string.IsNullOrWhiteSpace(checkDoctorEnt.AuditorUserId)) { + if (registerCheckEnt.AuditTime == null) + { + registerCheckEnt.AuditTime = DateTime.Now; + } + registerCheckEnt.IsAudit = 'Y'; registerCheckEnt.AuditorUserId = Guid.Parse(checkDoctorEnt.AuditorUserId); isUpdate = true; }