|
|
|
@ -125,11 +125,33 @@ namespace Shentun.Peis.PlugIns.WebAppoints |
|
|
|
SELECT |
|
|
|
id |
|
|
|
from patient_register |
|
|
|
where last_modification_time >= @HandDate and |
|
|
|
complete_flag = @CompleteFlag |
|
|
|
";
|
|
|
|
where complete_flag = @CompleteFlag ";
|
|
|
|
|
|
|
|
if (input.UploadDateType == '1') |
|
|
|
{ |
|
|
|
sql += " and summary_date>= @HandDate "; |
|
|
|
} |
|
|
|
else if (input.UploadDateType == '2') |
|
|
|
{ |
|
|
|
sql += " and audit_date>= @HandDate "; |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
sql += " and last_modification_time>= @HandDate "; |
|
|
|
} |
|
|
|
|
|
|
|
if (input.IsAuditWhere == 'Y') |
|
|
|
{ |
|
|
|
sql += " and is_audit='Y' "; |
|
|
|
} |
|
|
|
if (input.IsRepeatUpload == 'N') |
|
|
|
{ |
|
|
|
//不要重复上传,筛选是否上传状态
|
|
|
|
sql += " and is_upload='N' "; |
|
|
|
} |
|
|
|
|
|
|
|
var patientRegisterIds = (await conn.QueryAsync<SyncPatientRegisterIdsDto>(sql, |
|
|
|
new { HandDate = DateTime.Now.Date.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); |
|
|
|
new { HandDate = DateTime.Now.Date.AddDays(-input.QueryDays), CompleteFlag = PatientRegisterCompleteFlag.SumCheck })).ToList(); |
|
|
|
return patientRegisterIds; |
|
|
|
} |
|
|
|
} |
|
|
|
@ -195,8 +217,8 @@ namespace Shentun.Peis.PlugIns.WebAppoints |
|
|
|
/// <exception cref="NotImplementedException"></exception>
|
|
|
|
public override async Task<CreateWeChatOrderRefundDto> CreateWeChatOrderRefundAsync(CreateWeChatOrderRefundInputDto input) |
|
|
|
{ |
|
|
|
return await CallWePeisAppServiceAsync<CreateWeChatOrderRefundInputDto, CreateWeChatOrderRefundDto> |
|
|
|
(_webPeisCreateWeChatOrderRefundUrl, input); |
|
|
|
return await CallWePeisAppServiceAsync<CreateWeChatOrderRefundInputDto, CreateWeChatOrderRefundDto> |
|
|
|
(_webPeisCreateWeChatOrderRefundUrl, input); |
|
|
|
} |
|
|
|
|
|
|
|
public async virtual Task<WebApiOutDto<LoginOutDataDto>> LoginWebPeisAsync() |
|
|
|
@ -325,7 +347,7 @@ namespace Shentun.Peis.PlugIns.WebAppoints |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private async Task CheckWebPeisLoginAsync() |
|
|
|
{ |
|
|
|
|