修改一版
This commit is contained in:
@@ -331,7 +331,7 @@
|
||||
批次Id
|
||||
</summary>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.RecordSing(IRaCIS.Core.Application.Contracts.SignDTO,IRaCIS.Core.Infrastructure.Extention.IResponseOutput)">
|
||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.RecordSing(IRaCIS.Core.Application.Contracts.SignDTO)">
|
||||
<summary>
|
||||
传入参数记录ID
|
||||
</summary>
|
||||
@@ -339,6 +339,14 @@
|
||||
<param name="response"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.CompletedSign(System.Guid,IRaCIS.Core.Infrastructure.Extention.IResponseOutput)">
|
||||
<summary>
|
||||
完成签名
|
||||
</summary>
|
||||
<param name="signId"></param>
|
||||
<param name="response"></param>
|
||||
<returns></returns>
|
||||
</member>
|
||||
<member name="M:IRaCIS.Core.Application.Service.Inspection.InspectionService.VerifySignatureAsync(IRaCIS.Core.Application.Contracts.SignDTO)">
|
||||
<summary> 验证用户签名信息 </summary> ///
|
||||
</member>
|
||||
|
||||
@@ -167,18 +167,36 @@ namespace IRaCIS.Core.Application.Service.Inspection
|
||||
/// <param name="SignInfo"></param>
|
||||
/// <param name="response"></param>
|
||||
/// <returns></returns>
|
||||
public async Task RecordSing(SignDTO SignInfo, IResponseOutput response)
|
||||
public async Task<Guid> RecordSing(SignDTO SignInfo)
|
||||
{
|
||||
if (SignInfo != null&&response.IsSuccess)
|
||||
if (SignInfo != null)
|
||||
{
|
||||
var verifyResult = await VerifySignatureAsync(SignInfo);
|
||||
var signId = await AddSignRecordAsync(SignInfo);
|
||||
_userInfo.SignId = signId;
|
||||
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
||||
return signId;
|
||||
}
|
||||
else
|
||||
{
|
||||
return default(Guid);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 完成签名
|
||||
/// </summary>
|
||||
/// <param name="signId"></param>
|
||||
/// <param name="response"></param>
|
||||
/// <returns></returns>
|
||||
public async Task CompletedSign(Guid signId, IResponseOutput response)
|
||||
{
|
||||
if (response.IsSuccess)
|
||||
{
|
||||
await _repository.BatchUpdateAsync<TrialSign>(t => t.Id == signId, u => new TrialSign() { IsCompleted = true });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary> 验证用户签名信息 </summary> ///
|
||||
|
||||
@@ -17,9 +17,12 @@ namespace IRaCIS.Core.Application.Service.Inspection.Interface
|
||||
|
||||
Task<Guid> AddSignRecordAsync(SignDTO signDTO);
|
||||
|
||||
Task RecordSing(SignDTO SignInfo, IResponseOutput response);
|
||||
|
||||
Task<Guid> RecordSing(SignDTO SignInfo);
|
||||
|
||||
|
||||
Task CompletedSign(Guid signId, IResponseOutput response);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user