|
@@ -246,8 +246,8 @@
|
|
|
ifnull(sum(remind_processed_num),0) as remind_processed_num,
|
|
ifnull(sum(remind_processed_num),0) as remind_processed_num,
|
|
|
(case when sum(send_num)>=sum(registered_num) then ROUND(SUM(registered_num) * 1.0 / SUM(send_num), 4) else 0 end) as reg_rate,
|
|
(case when sum(send_num)>=sum(registered_num) then ROUND(SUM(registered_num) * 1.0 / SUM(send_num), 4) else 0 end) as reg_rate,
|
|
|
(case when sum(send_num)>=sum(completed_num) then ROUND(SUM(completed_num) * 1.0 / SUM(send_num), 4) else 0 end) as finished_rate,
|
|
(case when sum(send_num)>=sum(completed_num) then ROUND(SUM(completed_num) * 1.0 / SUM(send_num), 4) else 0 end) as finished_rate,
|
|
|
- ifnull(sum(traffic_sum,0)) as traffic_sum,
|
|
|
|
|
- ifnull(sum(reg_num,0)) as reg_num
|
|
|
|
|
|
|
+ ifnull(sum(traffic_sum),0) as traffic_sum,
|
|
|
|
|
+ ifnull(sum(reg_num),0) as reg_num
|
|
|
from fs_statis_qw_watch
|
|
from fs_statis_qw_watch
|
|
|
<where>
|
|
<where>
|
|
|
<if test="startDate != null and endDate != null">
|
|
<if test="startDate != null and endDate != null">
|
|
@@ -291,8 +291,8 @@
|
|
|
ifnull(sum(watch.remind_processed_num),0) as remind_processed_num,
|
|
ifnull(sum(watch.remind_processed_num),0) as remind_processed_num,
|
|
|
(case when sum(watch.send_num)>=sum(watch.registered_num) then ROUND(SUM(watch.registered_num) * 1.0 / SUM(watch.send_num), 4) else 0 end) as reg_rate,
|
|
(case when sum(watch.send_num)>=sum(watch.registered_num) then ROUND(SUM(watch.registered_num) * 1.0 / SUM(watch.send_num), 4) else 0 end) as reg_rate,
|
|
|
(case when sum(watch.send_num)>=sum(watch.completed_num) then ROUND(SUM(watch.completed_num) * 1.0 / SUM(watch.send_num), 4) else 0 end) as finished_rate,
|
|
(case when sum(watch.send_num)>=sum(watch.completed_num) then ROUND(SUM(watch.completed_num) * 1.0 / SUM(watch.send_num), 4) else 0 end) as finished_rate,
|
|
|
- ifnull(sum(traffic_sum,0)) as traffic_sum,
|
|
|
|
|
- ifnull(sum(reg_num,0)) as reg_num
|
|
|
|
|
|
|
+ ifnull(sum(traffic_sum),0) as traffic_sum,
|
|
|
|
|
+ ifnull(sum(reg_num),0) as reg_num
|
|
|
from fs_statis_qw_watch watch
|
|
from fs_statis_qw_watch watch
|
|
|
left join company_dept dept on watch.dept_id=dept.dept_id
|
|
left join company_dept dept on watch.dept_id=dept.dept_id
|
|
|
left join company_user cu on watch.company_user_id=cu.user_id
|
|
left join company_user cu on watch.company_user_id=cu.user_id
|