From 183c7aed28260f23de84890289b6be834b2dae9f Mon Sep 17 00:00:00 2001 From: Yiru Date: Wed, 7 Feb 2024 08:25:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E5=AE=8C=E5=B7=A5=E5=85=A5?= =?UTF-8?q?=E5=BA=AB=E6=9C=83=E6=92=88=E5=87=BA=E5=A4=9A=E7=AD=86=E7=9B=B8?= =?UTF-8?q?=E5=90=8C=E7=AE=B1=E8=99=9F=E5=95=8F=E9=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/AMES/FqcInhouseMasterController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs index b8239287..f99b8145 100644 --- a/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs +++ b/AMESCoreStudio.WebApi/Controllers/AMES/FqcInhouseMasterController.cs @@ -624,7 +624,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES , string inhouseNo, string date_str, string date_end, string status, int page = 0, int limit = 10) { - IQueryable q = from q1 in _context.FqcInhouseMasters + IQueryable q = (from q1 in _context.FqcInhouseMasters join q2 in _context.FqcInhouseDetails on new { q1.InhouseNo, q1.SeqID } equals new { q2.InhouseNo, q2.SeqID } join q3 in _context.FqcResultMasters on q1.InhouseNo equals q3.InhouseNo join q4 in _context.WareHouseings on new { q2.InhouseNo, q2.SeqID, q2.SerialNo } equals new { q4.InhouseNo, q4.SeqID, q4.SerialNo } into q2q4 @@ -644,7 +644,7 @@ namespace AMESCoreStudio.WebApi.Controllers.AMES RecordNumber = q402.RecordNumber, RecordDate = q402.Create_Date, LocationNo = q1.LocationNo, - }; + }).Distinct();