diff --git a/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/HomePageSubMapper.xml b/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/HomePageSubMapper.xml index 9e04e86..d01f000 100644 --- a/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/HomePageSubMapper.xml +++ b/bonus-modules/bonus-bmw/src/main/resources/mapper/bmw/HomePageSubMapper.xml @@ -320,6 +320,7 @@ pw.phone, bwem.pro_name, bwem.sub_name, + bwem.team_name, psc.sub_company_name, bwem.exit_time, if(is_upload_file=0,DATEDIFF(NOW(), exit_time),0) as days_since_exit @@ -329,7 +330,7 @@ INNER JOIN pm_worker pw ON bwem.worker_id = pw.id and pw.is_active = 1 INNER JOIN pm_sub_company psc ON pp.sub_com_id = psc.id - bwem.is_active = 1 and bwem.ein_status = 2 and bwem.is_upload_file = 0 + bwem.ein_status = 2 and bwem.is_upload_file = 0 AND pp.sub_com_id