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}