diff --git a/modules/bmw/src/main/resources/mapper/team/JobPointMapper.xml b/modules/bmw/src/main/resources/mapper/team/JobPointMapper.xml index f96a97f..f4f8b34 100644 --- a/modules/bmw/src/main/resources/mapper/team/JobPointMapper.xml +++ b/modules/bmw/src/main/resources/mapper/team/JobPointMapper.xml @@ -197,8 +197,8 @@ LEFT JOIN bm_subcontractor bs ON bs.id = team.sub_id AND bs.is_active = '1' LEFT JOIN bm_team_scene bts on bts.team_id = team.id and bts.is_active = '1' LEFT JOIN bm_attendance_range bar on bar.scene_id = bts.scene_id and bar.is_active = '1' - LEFT JOIN bm_sub_relation bsr ON bsr.type = '3' AND bsr.`v` = team.id AND bsr.is_active = '1' - LEFT JOIN bm_sub_contract bsc ON bsc.id = bsr.sub_contract_id AND bsc.is_active = '1' + + LEFT JOIN bm_sub_contract bsc ON bsc.sub_id = bs.id AND bsc.is_active = '1' LEFT JOIN bm_project bp ON bp.id = bsc.pro_id AND bp.is_active = '1' LEFT JOIN pm_organization po ON po.id = bp.company_id and po.is_active = '1' WHERE team.is_active = '1' @@ -291,4 +291,4 @@ WHERE bts.is_active = '1' AND bts.team_id = #{teamId} - \ No newline at end of file +