feat(dal): добавлен Shortcode "%СВЯЗИ-ПН%", добавлен метод GetAvailableShortcodesAsync для отображения доступных изменямеых частей в API

This commit is contained in:
Mikhail Kuznetsov
2025-12-10 11:55:58 +10:00
parent 2f07ccd67c
commit 3a136f5bf4
12 changed files with 294 additions and 53 deletions

View File

@@ -1,5 +1,4 @@
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using PARR.Constants;
using PARR.DAL.Contracts;
@@ -86,7 +85,7 @@ namespace PARR.EsppSync
{
var value = property.GetValue(dbObjectInEsppObject)?.ToString();
if (value != null && shortcodesService.isAnyShortcodes(value))
if (value != null && shortcodesService.IsAnyShortcodes(value))
property.SetValue(dbObjectInEsppObject, await shortcodesService.ApplyShortcodesAsync(value, template.UnitId, template.JobId));
}