Browse Source

营销报表私有客户数显示BUG修复

anderx 7 years ago
parent
commit
c8132430e8

+ 1 - 1
src/main/java/com/goafanti/common/mapper/DailySalesReportMapper.xml

@@ -179,7 +179,7 @@
 		from admin a left join user_role b
 		on a.id=b.uid left join role c
 		on b.rid=c.id left join department_management d
-		on a.department_id=d.id left join (select aid,count(0) as privateCustomersCount from user where aid is not null and aid != '' group by aid)e
+		on a.department_id=d.id left join (select aid,count(0) as privateCustomersCount from user where aid is not null and aid != '' and share_type=0  group by aid)e
 		on a.id=e.aid left join admin f
 		on d.manager_id=f.id
 		where c.role_name in ('营销员' ,'营销经理','营销管理员')