소스 검색

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

anderx 7 년 전
부모
커밋
c8132430e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/main/java/com/goafanti/common/mapper/DailySalesReportMapper.xml

+ 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 ('营销员' ,'营销经理','营销管理员')