From fd5455093753ae3a5bc46465d4f5a99b2d0eda7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=86=9B?= <2357729423@qq.com> Date: Wed, 6 Mar 2024 11:24:08 +0800 Subject: [PATCH] =?UTF-8?q?fix=E3=80=90S1-=E8=B7=A8=E5=AD=90=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E7=9A=84=E8=AE=A2=E5=8D=95=E6=9C=89=E5=85=B3=E8=81=94?= =?UTF-8?q?=E5=85=B3=E7=B3=BB=EF=BC=8C=E4=BD=86=E6=98=AF=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E9=85=8D=E7=BD=AE=E5=86=85=E5=AE=B9=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E6=9D=A5=E5=90=91=E4=B8=8B=E6=96=B0=E5=A2=9E=E8=BD=A8?= =?UTF-8?q?=E8=BF=B9=E3=80=91https://www.tapd.cn/60863849/bugtrace/bugs/vi?= =?UTF-8?q?ew=3Fbug=5Fid=3D1160863849001029806?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/SJZY.Track.Repository/Queries/ProvideQueries.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/SJZY.Track.Repository/Queries/ProvideQueries.cs b/src/SJZY.Track.Repository/Queries/ProvideQueries.cs index 119ba0aa..bbb186f9 100644 --- a/src/SJZY.Track.Repository/Queries/ProvideQueries.cs +++ b/src/SJZY.Track.Repository/Queries/ProvideQueries.cs @@ -94,10 +94,11 @@ public class ProvideQueries : ISugarRepository, IProvideQueries, public async Task> MapTrackCodesAsync(int upSubSystemId, int subSystemId, params string[] trackCodes) { + // 根据上游code得到下游code return await Context.Queryable() - .Where(x => x.SubSystemId == upSubSystemId && x.MapSubSystemId == subSystemId && - trackCodes.Contains(x.TrackContentCode)) - .Select(x => x.MapTrackContentCode) + .Where(x => x.SubSystemId == subSystemId && x.MapSubSystemId == upSubSystemId && + trackCodes.Contains(x.MapTrackContentCode)) + .Select(x => x.TrackContentCode) .ToListAsync(); }