Merge branch 'Test_IRC_Net8' of https://gitea.frp.extimaging.com/XCKJ/irc-netcore-api into Test_IRC_Net8
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
commit
e17e3a4b53
|
@ -96,11 +96,12 @@ namespace IRaCIS.Core.Application.Services
|
|||
[HttpPost]
|
||||
public async Task<IResponseOutput> PublishTrialDocument(PublishTrialDocumentInDto inDto)
|
||||
{
|
||||
await _trialDocumentRepository.BatchUpdateNoTrackingAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
|
||||
await _trialDocumentRepository.UpdatePartialFromQueryAsync(x => inDto.Ids.Contains(x.Id), x => new TrialDocument()
|
||||
{
|
||||
IsPublish = true,
|
||||
IsDeleted = false,
|
||||
});
|
||||
await _trialDocumentRepository.SaveChangesAsync();
|
||||
Console.WriteLine("开始 发布项目文档");
|
||||
|
||||
Task.Run(async () =>
|
||||
|
|
|
@ -1013,9 +1013,14 @@ namespace IRaCIS.Core.Infra.EFCore.Common
|
|||
|
||||
var usertypeNames = await _dbContext.UserType.Where(x => needConfirmedUserTypeIdList.Contains(x.Id)).Select(x => x.UserTypeShortName).ToListAsync();
|
||||
var usertypeName = string.Join(",", usertypeNames);
|
||||
var isDistinctionInterface = false;
|
||||
if (_userInfo.RequestUrl == "TrialDocument/publishTrialDocument")
|
||||
{
|
||||
isDistinctionInterface = true;
|
||||
}
|
||||
await InsertInspection<TrialDocument>(entity, type, x => new InspectionConvertDTO()
|
||||
{
|
||||
IsDistinctionInterface = false,
|
||||
IsDistinctionInterface = isDistinctionInterface,
|
||||
ObjectRelationParentId = x.TrialId
|
||||
},
|
||||
new
|
||||
|
|
Loading…
Reference in New Issue