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
ea4a3db145
|
@ -154,7 +154,7 @@ namespace IRaCIS.Core.Application.MassTransit.Recurring
|
||||||
IRepository<VisitTask> _visitTaskRepository,
|
IRepository<VisitTask> _visitTaskRepository,
|
||||||
IRepository<TrialDocument> _trialDocumentRepository,
|
IRepository<TrialDocument> _trialDocumentRepository,
|
||||||
IRepository<IdentityUser> _identityUserRepository,
|
IRepository<IdentityUser> _identityUserRepository,
|
||||||
|
IRepository<TrialIdentityUser> _trialIdentityUserRepository,
|
||||||
IRepository<Dictionary> _dictionaryRepository,
|
IRepository<Dictionary> _dictionaryRepository,
|
||||||
IRepository<TrialUserRole> _trialUserRoleRepository,
|
IRepository<TrialUserRole> _trialUserRoleRepository,
|
||||||
IRepository<EmailNoticeConfig> _emailNoticeConfigrepository,
|
IRepository<EmailNoticeConfig> _emailNoticeConfigrepository,
|
||||||
|
@ -180,8 +180,10 @@ namespace IRaCIS.Core.Application.MassTransit.Recurring
|
||||||
// 只查询新增角色的用户
|
// 只查询新增角色的用户
|
||||||
systemDocQuery =
|
systemDocQuery =
|
||||||
from trialDoc in _trialDocumentRepository.AsQueryable(false).Where(x => context.Message.Ids.Contains(x.Id))
|
from trialDoc in _trialDocumentRepository.AsQueryable(false).Where(x => context.Message.Ids.Contains(x.Id))
|
||||||
|
join trialIdentityUser in _trialIdentityUserRepository.AsQueryable() on trialDoc.TrialId equals trialIdentityUser.TrialId
|
||||||
from identityUser in _identityUserRepository.AsQueryable(false)
|
from identityUser in _identityUserRepository.AsQueryable(false)
|
||||||
.Where(t => t.Status == UserStateEnum.Enable &&
|
.Where(t => t.Status == UserStateEnum.Enable &&
|
||||||
|
t.Id == trialIdentityUser.IdentityUserId &&
|
||||||
t.UserRoleList.Where(t => t.IsUserRoleDisabled == false)
|
t.UserRoleList.Where(t => t.IsUserRoleDisabled == false)
|
||||||
.Any(t => context.Message.NewUserTypeIds.Contains(t.UserTypeId) &&
|
.Any(t => context.Message.NewUserTypeIds.Contains(t.UserTypeId) &&
|
||||||
trialDoc.NeedConfirmedUserTypeList.AsQueryable().Any(c => c.NeedConfirmUserTypeId == t.UserTypeId)))
|
trialDoc.NeedConfirmedUserTypeList.AsQueryable().Any(c => c.NeedConfirmUserTypeId == t.UserTypeId)))
|
||||||
|
@ -208,13 +210,15 @@ namespace IRaCIS.Core.Application.MassTransit.Recurring
|
||||||
// 查询所有相关角色的用户
|
// 查询所有相关角色的用户
|
||||||
systemDocQuery =
|
systemDocQuery =
|
||||||
from trialDoc in _trialDocumentRepository.AsQueryable(false).Where(x => context.Message.Ids.Contains(x.Id))
|
from trialDoc in _trialDocumentRepository.AsQueryable(false).Where(x => context.Message.Ids.Contains(x.Id))
|
||||||
|
join trialIdentityUser in _trialIdentityUserRepository.AsQueryable() on trialDoc.TrialId equals trialIdentityUser.TrialId
|
||||||
from identityUser in _identityUserRepository.AsQueryable(false)
|
from identityUser in _identityUserRepository.AsQueryable(false)
|
||||||
.Where(t => t.Status == UserStateEnum.Enable &&
|
.Where(t => t.Status == UserStateEnum.Enable &&
|
||||||
|
t.Id== trialIdentityUser.IdentityUserId&&
|
||||||
t.UserRoleList.Where(t => t.IsUserRoleDisabled == false)
|
t.UserRoleList.Where(t => t.IsUserRoleDisabled == false)
|
||||||
.Any(t => trialDoc.NeedConfirmedUserTypeList.AsQueryable().Any(c => c.NeedConfirmUserTypeId == t.UserTypeId)))
|
.Any(t => trialDoc.NeedConfirmedUserTypeList.AsQueryable().Any(c => c.NeedConfirmUserTypeId == t.UserTypeId)))
|
||||||
select new UnionDocumentWithConfirmInfoView()
|
select new UnionDocumentWithConfirmInfoView()
|
||||||
{
|
{
|
||||||
IsSystemDoc = true,
|
IsSystemDoc = false,
|
||||||
Id = trialDoc.Id,
|
Id = trialDoc.Id,
|
||||||
CreateTime = trialDoc.CreateTime,
|
CreateTime = trialDoc.CreateTime,
|
||||||
IsDeleted = trialDoc.IsDeleted,
|
IsDeleted = trialDoc.IsDeleted,
|
||||||
|
|
|
@ -110,7 +110,7 @@ namespace IRaCIS.Core.Application.Services
|
||||||
{
|
{
|
||||||
// 从新作用域解析服务
|
// 从新作用域解析服务
|
||||||
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
|
var mediator = scope.ServiceProvider.GetRequiredService<IMediator>();
|
||||||
await mediator.Publish(new SystemDocumentPublishEvent { Ids = inDto.Ids });
|
await mediator.Publish(new TrialDocumentPublishEvent { Ids = inDto.Ids });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -11,6 +11,7 @@ using IRaCIS.Core.Infrastructure.Extention;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using IRaCIS.Core.Infra.EFCore;
|
using IRaCIS.Core.Infra.EFCore;
|
||||||
using IRaCIS.Core.Application.Service.DTO;
|
using IRaCIS.Core.Application.Service.DTO;
|
||||||
|
using IRaCIS.Core.Application.MassTransit.Command;
|
||||||
namespace IRaCIS.Core.Application.Service;
|
namespace IRaCIS.Core.Application.Service;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -41,6 +42,21 @@ public class TrialHistoryRecordFileService(IRepository<TrialHistoryRecordFile> _
|
||||||
return pageList;
|
return pageList;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 批量新增稽查记录文件
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="inDto"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpPost]
|
||||||
|
public async Task<IResponseOutput> BatchAddTrialHistoryRecordFile(List<TrialHistoryRecordFileAddOrEdit> inDto)
|
||||||
|
{
|
||||||
|
List<TrialHistoryRecordFile> entities = _mapper.Map<List<TrialHistoryRecordFile>>(inDto);
|
||||||
|
await _trialHistoryRecordFileRepository.AddRangeAsync(entities);
|
||||||
|
|
||||||
|
await _trialHistoryRecordFileRepository.SaveChangesAsync();
|
||||||
|
return ResponseOutput.Ok(true);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 新增或修改稽查记录文件
|
/// 新增或修改稽查记录文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -1281,6 +1281,13 @@ namespace IRaCIS.Core.Application.Service.Reading.Dto
|
||||||
|
|
||||||
public int? OtherNumberOfFrames { get; set; }
|
public int? OtherNumberOfFrames { get; set; }
|
||||||
public string? OtherMeasureData { get; set; }
|
public string? OtherMeasureData { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 表格问题标记
|
||||||
|
/// </summary>
|
||||||
|
public Guid? RowId { get; set; }
|
||||||
|
|
||||||
|
public Guid? TableQuestionId { get; set; }
|
||||||
}
|
}
|
||||||
public class GetReadingQuestionAndAnswerInDto
|
public class GetReadingQuestionAndAnswerInDto
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue