修改
continuous-integration/drone/push Build is running Details

Test_IRC_Net8
he 2025-04-15 16:54:24 +08:00
parent 1069292c54
commit 8bf54dfc1b
2 changed files with 3 additions and 3 deletions

View File

@ -211,7 +211,7 @@ namespace IRaCIS.Core.Application.Services
select new UnionDocumentWithConfirmInfoView()
{
AttachmentCount=sysDoc.SystemDocumentAttachmentList.Count(),
AttachmentCount=sysDoc.SystemDocumentAttachmentList.Where(z=>z.OffLine).Count(),
IsSystemDoc = true,
CurrentStaffTrainDays=sysDoc.CurrentStaffTrainDays,
NewStaffTrainDays = sysDoc.NewStaffTrainDays,

View File

@ -419,7 +419,7 @@ namespace IRaCIS.Core.Application.Services
{
if (sysDataList.Any(y => y.Id == x.Id))
{
x.AttachmentCount = sysDataList.Where(y => y.Id == x.Id).Select(x => x.SystemDocumentAttachmentList.Count()).FirstOrDefault();
x.AttachmentCount = sysDataList.Where(y => y.Id == x.Id).Select(x => x.SystemDocumentAttachmentList.Where(z=> !z.OffLine).Count()).FirstOrDefault();
}
@ -590,7 +590,7 @@ namespace IRaCIS.Core.Application.Services
{
if (sysDataList.Any(y => y.Id == x.Id))
{
x.AttachmentCount = sysDataList.Where(y => y.Id == x.Id).Select(x => x.SystemDocumentAttachmentList.Count()).FirstOrDefault();
x.AttachmentCount = sysDataList.Where(y => y.Id == x.Id).Select(x => x.SystemDocumentAttachmentList.Where(z=>!z.OffLine).Count()).FirstOrDefault();
}
});