From 693dff47be7c261ed28badf09823fa1551e1c442 Mon Sep 17 00:00:00 2001 From: xiaolipro <2357729423@qq.com> Date: Tue, 24 Sep 2024 16:38:21 +0800 Subject: [PATCH] =?UTF-8?q?change=EF=BC=9A=E6=9B=B4=E6=96=B0=E6=8B=89?= =?UTF-8?q?=E5=8F=96=E9=85=8D=E7=BD=AE=E9=80=82=E9=85=8D=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E9=80=9A=E5=8F=82=E6=95=B0=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/TrackPull/TrackPullService.cs | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/src/SJZY.Track.Application/Services/TrackPull/TrackPullService.cs b/src/SJZY.Track.Application/Services/TrackPull/TrackPullService.cs index eaad7aca..468a61a6 100644 --- a/src/SJZY.Track.Application/Services/TrackPull/TrackPullService.cs +++ b/src/SJZY.Track.Application/Services/TrackPull/TrackPullService.cs @@ -140,6 +140,27 @@ public class TrackPullService : ApplicationService throw new BusinessException(message: _stringLocalizer["NotFindData"]); ObjectMapper.Map(input, oldTrackPullEntity); + if (input.ParseMethod == (int) ParseMethod.InterfaceRelay) + { + var paramsConfig = configuration.GetSection("InterfaceRelayParamsConfig") + .Get>(); + if (paramsConfig == null) + { + throw new BusinessException(message: "未找到接口通参数配置,联系管理员添加"); + } + + oldTrackPullEntity.OrderPath = paramsConfig[nameof(oldTrackPullEntity.OrderPath)]; + oldTrackPullEntity.OrderNoName = paramsConfig[nameof(oldTrackPullEntity.OrderNoName)]; + oldTrackPullEntity.TrackDetailsPath = paramsConfig[nameof(oldTrackPullEntity.TrackDetailsPath)]; + oldTrackPullEntity.TrackContentCodeName = + paramsConfig[nameof(oldTrackPullEntity.TrackContentCodeName)]; + oldTrackPullEntity.TrackStatusName = paramsConfig[nameof(oldTrackPullEntity.TrackStatusName)]; + oldTrackPullEntity.TrackContentName = paramsConfig[nameof(oldTrackPullEntity.TrackContentName)]; + oldTrackPullEntity.TrackPlaceName = paramsConfig[nameof(oldTrackPullEntity.TrackPlaceName)]; + oldTrackPullEntity.TrackTimeName = paramsConfig[nameof(oldTrackPullEntity.TrackTimeName)]; + oldTrackPullEntity.TrackTimeZoneName = + paramsConfig[nameof(oldTrackPullEntity.TrackTimeZoneName)]; + } await _trackPullConfigRepository.UpdateAsync(oldTrackPullEntity);