feat(dal): ShortcodesService добавлена обработка динамичесих составляющих "%СВЯЗИ%", "%ТНК-КРАТКО%"

This commit is contained in:
Mikhail Kuznetsov
2025-12-09 16:50:35 +10:00
parent b033f95116
commit d19aa77ec4
18 changed files with 1265 additions and 280 deletions

View File

@@ -10,10 +10,8 @@ using PARR.API.Contracts.V1.Responses.Base;
using PARR.API.Controllers.V1.Base;
using PARR.Constants;
using PARR.DAL.DomainServices.Interfaces;
using PARR.DAL.Models.Job;
using PARR.DAL.Services.Interfaces.Job;
using PARR.DAL.Services.Interfaces.Unit;
using static PARR.API.Contracts.V1.ApiRoutes;
using Job = PARR.DAL.Models.Job.Job;
namespace PARR.API.Controllers.V1
@@ -66,8 +64,8 @@ namespace PARR.API.Controllers.V1
var job = mapper.Map<Job>(request);
var jobGroup = await jobGroupService.Get().AsNoTracking()
.Include(t=>t.GroupType)
.FirstAsync(t=>t.Id == job.GroupId);
.Include(t => t.GroupType)
.FirstAsync(t => t.Id == job.GroupId);
job.Group = jobGroup;
var unitIds = await unitFilterService.GetUnitsIdByJobFilterAsync(job, 100);