left join view_Project_final_Part b on a.site = b.site and a.test_part_no = b.test_part_no
left join plm_request_header as prh on a.site = prh.site and prh.menu_id = '103002'
left join plm_request_node as d on a.site = d.site and prh.classification_no = d.classification_no and prh.workflow_id = d.workflow_id and a.step_id = d.step_id
where a.status != 'death'
where
<iftest="query.site != null and query.site != ''">