修改稽查
This commit is contained in:
@@ -121,7 +121,16 @@ namespace IRaCIS.Application.Services
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
List<EnrollReadingCategory> enrollReadings = inDto.ReadingCategorys.Select(x => new EnrollReadingCategory()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user