|
|
@ -99,11 +99,11 @@ namespace Shentun.Peis.PlugIns.WebAppoints |
|
|
SELECT |
|
|
SELECT |
|
|
id |
|
|
id |
|
|
from patient_register |
|
|
from patient_register |
|
|
where last_modification_time > @HandDate and |
|
|
|
|
|
|
|
|
where summary_date > @HandDate and |
|
|
complete_flag = @CompleteFlag |
|
|
complete_flag = @CompleteFlag |
|
|
";
|
|
|
";
|
|
|
var patientRegisterIds = (await conn.QueryAsync<SyncPatientRegisterIdsDto>(sql, |
|
|
var patientRegisterIds = (await conn.QueryAsync<SyncPatientRegisterIdsDto>(sql, |
|
|
new { HandDate = DateTime.Now.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); |
|
|
|
|
|
|
|
|
new { HandDate = DateTime.Now.Date.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); |
|
|
return patientRegisterIds; |
|
|
return patientRegisterIds; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|