diff --git a/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml b/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml index 6e37c0cc..dfb85704 100644 --- a/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml +++ b/src/main/resources/mapper/Tooling/ProjectToolingApplyMapper.xml @@ -96,12 +96,12 @@ FROM plm_project_part b left join plm_routing_component c on b.site = c.site and (case when b.final_part_no is not null then final_part_no else test_part_no end) = c.part_no - INNER JOIN routing_tool d on c.site = d.site and + inner join routing_tool d on c.site = d.site and (case when b.final_part_no is not null then final_part_no else test_part_no end) = d.part_no and c.routing_revision = d.routing_revision and c.routing_type = d.routing_type and c.operation_id = d.operation_id - INNER join tool_header e on d.site = e.site and d.tool_id = e.tool_id + inner join tool_header e on d.site = e.site and d.tool_id = e.tool_id left join plm_project_info f on b.site = f.site and b.project_id = f.project_id left join plm_customer_part_info g on b.site = g.site and f.customer_id = g.customer_no and b.test_part_no = g.part_no left join part h on b.site = h.site and