qc 问题稽查修改
This commit is contained in:
@@ -6,6 +6,7 @@ using IRaCIS.Core.Application.Services;
|
||||
using EasyCaching.Core;
|
||||
using System.Linq.Expressions;
|
||||
using IRaCIS.Core.Application.Helper;
|
||||
using IRaCIS.Core.Infrastructure;
|
||||
|
||||
namespace IRaCIS.Core.Application.Service.ImageAndDoc
|
||||
{
|
||||
|
||||
@@ -121,15 +121,17 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
}
|
||||
|
||||
if (inDto.ReadingCategorys.Count > 0)
|
||||
{
|
||||
await _enrollReadingCategoryRepository.BatchDeleteNoTrackingAsync(x => x.EnrollId == inDto.EnrollId);
|
||||
//if (inDto.ReadingCategorys.Count > 0)
|
||||
//{
|
||||
// await _enrollReadingCategoryRepository.BatchDeleteNoTrackingAsync(x => x.EnrollId == inDto.EnrollId);
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
await _enrollReadingCategoryRepository.DeleteFromQueryAsync(x => x.EnrollId == inDto.EnrollId);
|
||||
}
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// await _enrollReadingCategoryRepository.DeleteFromQueryAsync(x => x.EnrollId == inDto.EnrollId);
|
||||
//}
|
||||
|
||||
await _enrollReadingCategoryRepository.DeleteFromQueryAsync(x => x.EnrollId == inDto.EnrollId);
|
||||
|
||||
|
||||
List<EnrollReadingCategory> enrollReadings = inDto.ReadingCategorys.Select(x => new EnrollReadingCategory()
|
||||
|
||||
Reference in New Issue
Block a user