diff --git a/src/main/resources/mapper/pms/EamMapper.xml b/src/main/resources/mapper/pms/EamMapper.xml index 357ccc5f..6412094c 100644 --- a/src/main/resources/mapper/pms/EamMapper.xml +++ b/src/main/resources/mapper/pms/EamMapper.xml @@ -3827,7 +3827,7 @@ d.role_desc FROM bu_document_list_definition as a LEFT JOIN bu as b on a.site = b.site and a.bu_no = b.bu_no - LEFT JOIN document_type_definition as c on a.document_type_id = c.document_type_id + LEFT JOIN document_type_definition as c on a.document_type_id = c.document_type_id and c.site=a.site LEFT JOIN business_role as d on a.site = d.site and c.responsible_department = d.role_no WHERE a.site in (select site from eam_access_site where username = #{query.userName})