|
|
@@ -343,6 +343,7 @@ ORDER by t1.departmentName
|
|
|
SUM( m.yearFollowNo )as yearFollowNo,
|
|
|
SUM( m.yearVisitNo )as yearVisitNo,
|
|
|
SUM( m.yearTelNo )as yearTelNo
|
|
|
+
|
|
|
from(
|
|
|
select a.id,sum(e.privateCustomersCount) as privateCustomersCount
|
|
|
from admin a left join user_role b
|
|
|
@@ -357,7 +358,7 @@ select a.id,sum(e.privateCustomersCount) as privateCustomersCount
|
|
|
select x.aid,x.yearFollowNo,x.yearVisitNo,x.yearTelNo,
|
|
|
y.monthFollowNo,y.monthVisitNo,y.monthTelNo,
|
|
|
z.weeklyFollowNo,z.weeklyVisitNo,z.weeklyTelNo,
|
|
|
- w.dayFollowNo,w.dayVisitNo,dayTelNo
|
|
|
+ w.dayFollowNo,w.dayVisitNo,w.dayTelNo
|
|
|
from (
|
|
|
select
|
|
|
aid,
|
|
|
@@ -404,7 +405,7 @@ select
|
|
|
)m on n.id=m.aid
|
|
|
</select>
|
|
|
|
|
|
- <select id="privateCustomersDepCount" parameterType="String" resultType="com.goafanti.report.bo.CountDepMarketingStatisticsBo">
|
|
|
+ <select id="privateCustomersDepCount" parameterType="String" resultType="com.goafanti.report.bo.CountMarketingStatisticsBo">
|
|
|
select sum(t1.privateCustomersCount) as privateCustomersCount,sum(t1.departmentNumber) as departmentNumber,
|
|
|
sum(t2.yearFollowNo) as yearFollowNo,sum(t2.yearVisitNo) as yearVisitNo,sum(t2.yearTelNo) as yearTelNo,
|
|
|
sum(t2.monthFollowNo) as monthFollowNo,sum(t2.monthVisitNo) as monthVisitNo,sum(t2.monthTelNo) as monthTelNo,
|