V1.2 需求

This commit is contained in:
he
2023-08-07 15:52:43 +08:00
parent 94462015f2
commit dc63f1c735
7 changed files with 98 additions and 7 deletions
@@ -104,6 +104,15 @@ namespace IRaCIS.Core.Application.Contracts
}
public class GetNextUnSignDocumentInDto
{
[NotDefault]
public Guid TrialId { get; set; }
public bool Asc { get; set; } = true;
public string SortField { get; set; } = "";
}
public class TrialUserDocUnionQuery: PageInput
{
[NotDefault]
@@ -66,6 +66,32 @@ namespace IRaCIS.Core.Application.Services
}
/// <summary>
/// 获取下一个未签名的文件
/// </summary>
/// <param name="inDto"></param>
/// <returns></returns>
[HttpPost]
public async Task<UnionDocumentWithConfirmInfoView?> GetNextUnSignDocument(GetNextUnSignDocumentInDto inDto)
{
var result =await this.GetUserDocumentList(new TrialUserDocUnionQuery()
{
Asc = inDto.Asc,
IsSign = false,
SortField = inDto.SortField,
PageIndex = 1,
PageSize = 1,
});
if (result.Data.CurrentPageData.Count() > 0)
{
return result.Data.CurrentPageData.First();
}
else {
return null;
}
}
/// <summary>
/// 具体用户看到的 系统文件列表 + 项目类型文档