diff --git a/modules/system/src/main/resources/mapper/basic/SelectMapper.xml b/modules/system/src/main/resources/mapper/basic/SelectMapper.xml index 0b88863..dba77f3 100644 --- a/modules/system/src/main/resources/mapper/basic/SelectMapper.xml +++ b/modules/system/src/main/resources/mapper/basic/SelectMapper.xml @@ -259,7 +259,7 @@ LEFT JOIN bm_sub_relation bsr ON bsr.sub_contract_id = bsc.id AND bsr.type = '3' AND bsr.is_active = '1' - LEFT JOIN bm_sub_team bst ON bst.id = bsr.`value` + LEFT JOIN bm_sub_team bst ON bst.id = bsr.`v` AND bst.is_active = '1' WHERE bst.id is not null and bsc.is_active = '1' @@ -454,4 +454,4 @@ from bm_project where is_active = '1' - \ No newline at end of file +