文档修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
577ed42f97
commit
97133a5554
|
@ -41,12 +41,12 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 新增或者修改稽查文档
|
/// 修改稽查文档
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="inDto"></param>
|
/// <param name="inDto"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> AddOrUpdateAuditDocument(AuditDocumentAddOrEdit inDto)
|
public async Task<IResponseOutput> UpdateAuditDocument(AuditDocumentAddOrEdit inDto)
|
||||||
{
|
{
|
||||||
if (inDto.ParentId != null)
|
if (inDto.ParentId != null)
|
||||||
{
|
{
|
||||||
|
@ -59,7 +59,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var entityData = await _auditDocumentRepository.InsertOrUpdateAsync(inDto, true);
|
var entityData = await _auditDocumentRepository.UpdateFromDTOAsync(inDto, true);
|
||||||
|
|
||||||
var historicalVersionIds = await _auditDocumentRepository.Where(x => x.MainFileId == alikeData.Id).OrderBy(x => x.Version).Select(x => x.Id).ToListAsync();
|
var historicalVersionIds = await _auditDocumentRepository.Where(x => x.MainFileId == alikeData.Id).OrderBy(x => x.Version).Select(x => x.Id).ToListAsync();
|
||||||
|
|
||||||
|
@ -82,22 +82,20 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var entity = await _auditDocumentRepository.InsertOrUpdateAsync(inDto, true);
|
var entity = await _auditDocumentRepository.UpdateFromDTOAsync(inDto, true);
|
||||||
return ResponseOutput.Ok(entity.Id.ToString());
|
return ResponseOutput.Ok(entity.Id.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// /// <summary>
|
///// <summary>
|
||||||
// /// 删除稽查文档
|
///// 新增稽查文档
|
||||||
// /// </summary>
|
///// </summary>
|
||||||
// /// <param name="auditDocumentId"></param>
|
///// <returns></returns>
|
||||||
// /// <returns></returns>
|
//public async Task<IResponseOutput> InsertAuditDocument()
|
||||||
// [HttpDelete("{auditDocumentId:guid}")]
|
|
||||||
// public async Task<IResponseOutput> DeleteAuditDocument(Guid auditDocumentId)
|
|
||||||
//{
|
//{
|
||||||
// var success = await _auditDocumentRepository.DeleteFromQueryAsync(t => t.Id == auditDocumentId,true);
|
|
||||||
// return ResponseOutput.Ok();
|
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取文件树形结构 (传Id 根节点就是自己)
|
/// 获取文件树形结构 (传Id 根节点就是自己)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue