|
@@ -580,14 +580,31 @@ namespace Hotline.Api.Controllers
|
|
.ToPagedListAsync(pagedDto.PageIndex, pagedDto.PageSize);
|
|
.ToPagedListAsync(pagedDto.PageIndex, pagedDto.PageSize);
|
|
return new PagedDto<KnowledgeWorkFlowDto>(total, _mapper.Map<IReadOnlyList<KnowledgeWorkFlowDto>>(temp));
|
|
return new PagedDto<KnowledgeWorkFlowDto>(total, _mapper.Map<IReadOnlyList<KnowledgeWorkFlowDto>>(temp));
|
|
}
|
|
}
|
|
- #endregion
|
|
|
|
-
|
|
|
|
- #region 我的知识删除列表
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 我的知识删除列表页面枚举值
|
|
|
|
|
|
+ /// 获取知识审批信息
|
|
/// </summary>
|
|
/// </summary>
|
|
|
|
+ /// <param name="id"></param>
|
|
/// <returns></returns>
|
|
/// <returns></returns>
|
|
- [HttpGet("delete-status-data")]
|
|
|
|
|
|
+ [HttpGet("finding_duplicate")]
|
|
|
|
+
|
|
|
|
+ public async Task<bool> FindingDuplicate([FromQuery] KnowledgeFindingDuplicateDto dto)
|
|
|
|
+ {
|
|
|
|
+ var any = await _knowledgeRepository.Queryable().Where(x => x.Status == EKnowledgeStatus.Auditing || x.Status >= EKnowledgeStatus.OnShelf)
|
|
|
|
+ .WhereIF(string.IsNullOrEmpty(dto.Title), x => x.Title.Equals(dto.Title))
|
|
|
|
+ .WhereIF(string.IsNullOrEmpty(dto.Summary), x => x.Title.Equals(dto.Summary))
|
|
|
|
+ .WhereIF(string.IsNullOrEmpty(dto.Content), x => x.Title.Equals(dto.Content))
|
|
|
|
+ .AnyAsync();
|
|
|
|
+ return any;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ #endregion
|
|
|
|
+
|
|
|
|
+ #region 我的知识删除列表
|
|
|
|
+ /// <summary>
|
|
|
|
+ /// 我的知识删除列表页面枚举值
|
|
|
|
+ /// </summary>
|
|
|
|
+ /// <returns></returns>
|
|
|
|
+ [HttpGet("delete-status-data")]
|
|
public async Task<object> DeleteApplyStatus()
|
|
public async Task<object> DeleteApplyStatus()
|
|
{
|
|
{
|
|
return EnumExts.GetDescriptions<EKnowledgeWorkFlowStatus>();
|
|
return EnumExts.GetDescriptions<EKnowledgeWorkFlowStatus>();
|