Фикс: сохранение комментария при импорте операций

This commit is contained in:
Olga Nemt 2023-12-21 12:02:29 +05:00
parent 576d4d0e57
commit 7d157f7650
2 changed files with 4 additions and 1 deletions

View File

@ -77,7 +77,8 @@ public class WellOperationImportService : IWellOperationImportService
DepthStart = row.DepthStart,
DepthEnd = row.DepthEnd,
DateStart = row.Date,
DurationHours = row.Duration
DurationHours = row.Duration,
Comment = row.Comment
});
}
catch (FileFormatException ex)

View File

@ -40,6 +40,7 @@ namespace AsbCloudWebApi.Tests.UnitTests.Services.WellOperationExport
DepthEnd = 20,
DateStart = getDate(days: 0),
DurationHours = 10,
Comment = "Комментарий 1",
},
new WellOperationDto() {
IdWell = idWell,
@ -52,6 +53,7 @@ namespace AsbCloudWebApi.Tests.UnitTests.Services.WellOperationExport
DepthEnd = 30,
DateStart = getDate(days: 1),
DurationHours = 20,
Comment = "Комментарий 2",
}
};