From 280c735e48e12ecc0d7750a6131467e3b44d158a Mon Sep 17 00:00:00 2001 From: ruanqi Date: Fri, 11 Aug 2023 09:48:19 +0800 Subject: [PATCH] 66 --- src/main/resources/mapper/pda/ToolDetailMapper.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/resources/mapper/pda/ToolDetailMapper.xml b/src/main/resources/mapper/pda/ToolDetailMapper.xml index a5c306e..ae9d020 100644 --- a/src/main/resources/mapper/pda/ToolDetailMapper.xml +++ b/src/main/resources/mapper/pda/ToolDetailMapper.xml @@ -644,7 +644,8 @@ from PartSubPropertiesValueHeader a left join PropertiesModelDetail b on a.CodeNo=b.CodeNo left join PartSubPropertiesValue c on c.Site=#{site} and c.PartNo=#{toolId} and c.RecordType='T' and b.ItemNo=c.ItemNo left join PropertiesItem e on b.PropertiesItemNo=e.ItemNo - where c.ItemNo is null and a.RecordType='T' + where c.ItemNo is null and a.RecordType='T' and a.PartNo=#{toolId} and a.site= #{site} + @@ -692,7 +693,7 @@ td.steelSeal, td.Price, dbo.Get_AttributeValue(td.Site, td.ToolID, 'CUSTOMER') as customer, - dbo.Get_AttributeValue(td.Site, td.ToolID, 'FETYONG') as contributor + dbo.Get_AttributeValue(td.Site, td.ToolID, 'FEIYONG') as contributor FROM ToolDetail as td LEFT JOIN ToolHeader as th ON td.ToolID = th.ToolID and td.Site = th.Site LEFT JOIN Location as l ON td.LocationID = l.LocationID and td.Site = l.Site @@ -712,7 +713,7 @@ AND dbo.Get_AttributeValue(td.Site, td.ToolID, 'CUSTOMER') like #{query.customer} - AND dbo.Get_AttributeValue(td.Site, td.ToolID, 'FETYONG') like #{query.contributor} + AND dbo.Get_AttributeValue(td.Site, td.ToolID, 'FEIYONG') like #{query.contributor} AND td.PurchaseDate = ]]> #{query.startDate}