|
@@ -106,6 +106,7 @@ namespace Hotline.Api.Controllers
|
|
|
if (handle.Status != EKnowledgeApplyStatus.Handling)
|
|
|
throw UserFriendlyException.SameMessage("只能撤销办理中的申请");
|
|
|
handle.Status = EKnowledgeApplyStatus.Revert;
|
|
|
+ handle.HandleTime = DateTime.Now;
|
|
|
await _knowledgeApplyRepository.UpdateAsync(handle, HttpContext.RequestAborted);
|
|
|
}
|
|
|
|
|
@@ -127,7 +128,8 @@ namespace Hotline.Api.Controllers
|
|
|
if (string.IsNullOrEmpty(dto.Opinion))
|
|
|
throw UserFriendlyException.SameMessage("退回原因不能为空");
|
|
|
handle.Status = EKnowledgeApplyStatus.Failed;
|
|
|
- handle.ReturnTime = DateTime.Now;
|
|
|
+ handle.ReturnTime = DateTime.Now;
|
|
|
+ handle.HandleTime = DateTime.Now;
|
|
|
handle.Opinion = dto.Opinion;
|
|
|
await _knowledgeApplyRepository.UpdateAsync(handle, HttpContext.RequestAborted);
|
|
|
}
|