数据库修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2025-03-03 13:43:34 +08:00
parent 4b69e45d44
commit aec94d0a46
7 changed files with 19305 additions and 16 deletions
@@ -1535,7 +1535,7 @@
<param name="_userInfo"></param>
<param name="_localizer"></param>
</member>
<member name="M:IRaCIS.Core.Application.Service.TrialNormalRecordService.#ctor(IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialNormalRecord},AutoMapper.IMapper,IRaCIS.Core.Domain.Share.IUserInfo,Microsoft.Extensions.Localization.IStringLocalizer)">
<member name="M:IRaCIS.Core.Application.Service.TrialNormalRecordService.#ctor(IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialNormalRecord},IRaCIS.Core.Infra.EFCore.IRepository{IRaCIS.Core.Domain.Models.TrialFile},AutoMapper.IMapper,IRaCIS.Core.Domain.Share.IUserInfo,Microsoft.Extensions.Localization.IStringLocalizer)">
<summary>
项目-一般文件记录
</summary>
@@ -24,12 +24,13 @@ public class TrialNormalRecordAddOrEdit
public Guid? Id { get; set; }
public bool IsAuthorizedView { get; set; }
public int? ReviewerFileType { get; set; }
public int State { get; set; }
public TrialFileDto TrialFileRecord { get; set; }
public TrialFileDto? TrialFileRecord { get; set; }
public TrialFileDto? HistoryFile { get; set; }
public Guid TrialFileTypeId { get; set; }
@@ -40,8 +41,6 @@ public class TrialNormalRecordQuery : PageInput
{
public bool? IsAuthorizedView { get; set; }
public int? ReviewerFileType { get; set; }
public int? State { get; set; }
public string? FileName { get; set; }
@@ -46,6 +46,7 @@ public class TrialNormalRecordService(IRepository<TrialNormalRecord> _trialNorma
public async Task<IResponseOutput> AddOrUpdateTrialNormalRecord(TrialNormalRecordAddOrEdit inDto)
{
if (inDto.TrialFileRecord != null) inDto.TrialFileRecord.TrialFileTypeId = inDto.TrialFileTypeId;
if (inDto.HistoryFile != null) inDto.HistoryFile.TrialFileTypeId = inDto.TrialFileTypeId;
if (inDto.Id != null)
@@ -54,6 +55,7 @@ public class TrialNormalRecordService(IRepository<TrialNormalRecord> _trialNorma
List<Guid?> ids = new List<Guid?>() {
trialFinalRecord.TrialFileRecordId,
trialFinalRecord.HistoryFileId,
};
var fileIds = ids.Where(x => x != null).Select(x => (Guid)x).ToList();