|
|
@ -9,7 +9,7 @@ |
|
|
td.Site AS site, |
|
|
td.Site AS site, |
|
|
td.ToolID AS toolId, |
|
|
td.ToolID AS toolId, |
|
|
td.ToolInstanceID AS toolInstanceId, |
|
|
td.ToolInstanceID AS toolInstanceId, |
|
|
ISNULL(th.Spec,'') AS toolSpec, |
|
|
|
|
|
|
|
|
ISNULL(th.ToolDescription,'')+'/'+ISNULL(th.Spec,'') AS toolSpec, |
|
|
ISNULL(th.DefaultWarehouseID,'') AS warehouseId, |
|
|
ISNULL(th.DefaultWarehouseID,'') AS warehouseId, |
|
|
ISNULL(td.LocationID,'') AS locationId, |
|
|
ISNULL(td.LocationID,'') AS locationId, |
|
|
ISNULL(td.SupplierID,'') AS supplierId, |
|
|
ISNULL(td.SupplierID,'') AS supplierId, |
|
|
@ -49,6 +49,9 @@ |
|
|
<if test="query.site != null and query.site != ''"> |
|
|
<if test="query.site != null and query.site != ''"> |
|
|
AND td.Site = #{query.site} |
|
|
AND td.Site = #{query.site} |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="query.toolSpec != null and query.toolSpec != ''"> |
|
|
|
|
|
AND ISNULL(th.ToolDescription,'')+'/'+ISNULL(th.Spec,'') LIKE '%' + #{query.toolId} + '%' |
|
|
|
|
|
</if> |
|
|
<if test="query.toolId != null and query.toolId != ''"> |
|
|
<if test="query.toolId != null and query.toolId != ''"> |
|
|
AND td.ToolID LIKE '%' + #{query.toolId} + '%' |
|
|
AND td.ToolID LIKE '%' + #{query.toolId} + '%' |
|
|
</if> |
|
|
</if> |
|
|
|