修改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
5e6c018199
commit
9814f63246
|
@ -70,6 +70,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public async Task<IResponseOutput> AddAuditDocument(List<AuditDocumentAddOrEdit> inDto)
|
public async Task<IResponseOutput> AddAuditDocument(List<AuditDocumentAddOrEdit> inDto)
|
||||||
{
|
{
|
||||||
|
List<Guid> resultData = new List<Guid>();
|
||||||
inDto.ForEach(x => x.IsUpdate = false);
|
inDto.ForEach(x => x.IsUpdate = false);
|
||||||
await addData(inDto);
|
await addData(inDto);
|
||||||
|
|
||||||
|
@ -79,6 +80,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
{
|
{
|
||||||
var result= await AddOrUpdateAuditDocument(item);
|
var result= await AddOrUpdateAuditDocument(item);
|
||||||
|
|
||||||
|
resultData.Add(result.Id);
|
||||||
item.Children.ForEach(x => {
|
item.Children.ForEach(x => {
|
||||||
x.ParentId = result.Id;
|
x.ParentId = result.Id;
|
||||||
x.IsUpdate = false;
|
x.IsUpdate = false;
|
||||||
|
@ -92,7 +94,7 @@ public class AuditDocumentService(IRepository<AuditDocument> _auditDocumentRepos
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return ResponseOutput.Ok();
|
return ResponseOutput.Ok(resultData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue