修改一版
This commit is contained in:
@@ -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