|
@@ -568,7 +568,7 @@
|
|
|
from student_statistics ss
|
|
|
left join (select cssp.user_id_,COUNT(distinct cssp.course_schedule_id_) course_num_ from course_schedule cs
|
|
|
left join course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- where DATE_FORMAT(cs.class_date_,'%Y-%m') = #{queryInfo.month} AND cs.type_ = 'VIP'
|
|
|
+ where DATE_FORMAT(cs.class_date_,'%Y-%m') = #{queryInfo.month} AND cs.type_ = 'VIP' AND cs.del_flag_ = '0'
|
|
|
<include refid="com.ym.mec.biz.dal.dao.CourseScheduleDao.courseIgnore"/>
|
|
|
group by cssp.user_id_) cs ON cs.user_id_ = ss.user_id_
|
|
|
left join sys_user su ON su.id_ = ss.user_id_
|
|
@@ -589,7 +589,8 @@
|
|
|
from student_statistics ss
|
|
|
left join (select cssp.user_id_,COUNT(distinct cssp.course_schedule_id_) course_num_ from course_schedule cs
|
|
|
left join course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{queryInfo.startDate} AND #{queryInfo.endDate} AND cs.type_ = 'VIP'
|
|
|
+ where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{queryInfo.startDate} AND #{queryInfo.endDate}
|
|
|
+ AND cs.type_ = 'VIP' AND cs.del_flag_ = '0'
|
|
|
<include refid="com.ym.mec.biz.dal.dao.CourseScheduleDao.courseIgnore"/>
|
|
|
group by cssp.user_id_) cs ON cs.user_id_ = ss.user_id_
|
|
|
left join sys_user su ON su.id_ = ss.user_id_
|
|
@@ -616,7 +617,8 @@
|
|
|
from student_statistics ss
|
|
|
left join (select COUNT(cssp.id_) course_sum_,cssp.user_id_,COUNT(distinct cssp.course_schedule_id_) course_num_ from course_schedule cs
|
|
|
left join course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{queryInfo.startDate} AND #{queryInfo.endDate} AND cs.status_ = 'OVER' AND cs.type_ = 'VIP'
|
|
|
+ where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{queryInfo.startDate} AND #{queryInfo.endDate}
|
|
|
+ AND cs.status_ = 'OVER' AND cs.type_ = 'VIP' AND cs.del_flag_ = '0'
|
|
|
<include refid="com.ym.mec.biz.dal.dao.CourseScheduleDao.courseIgnore"/>
|
|
|
group by cssp.user_id_) cs ON cs.user_id_ = ss.user_id_
|
|
|
left join sys_user su ON su.id_ = ss.user_id_
|
|
@@ -643,7 +645,7 @@
|
|
|
from student_statistics ss
|
|
|
left join (select cssp.user_id_,COUNT(distinct cssp.course_schedule_id_) consumerNum from course_schedule cs
|
|
|
left join course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- where DATE_FORMAT(cs.class_date_,'%Y-%m') = #{month} AND cs.type_ = 'VIP'
|
|
|
+ where DATE_FORMAT(cs.class_date_,'%Y-%m') = #{month} AND cs.type_ = 'VIP' AND cs.del_flag_ = '0'
|
|
|
<include refid="com.ym.mec.biz.dal.dao.CourseScheduleDao.courseIgnore"/>
|
|
|
group by cssp.user_id_) cs ON cs.user_id_ = ss.user_id_
|
|
|
left join sys_user su ON su.id_ = ss.user_id_
|
|
@@ -681,7 +683,8 @@
|
|
|
left join (
|
|
|
select cssp.user_id_,COUNT(distinct cssp.course_schedule_id_) course_num_ from course_schedule cs
|
|
|
left join course_schedule_student_payment cssp ON cssp.course_schedule_id_ = cs.id_
|
|
|
- where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate} AND cs.type_ = 'VIP'
|
|
|
+ where DATE_FORMAT(cs.class_date_,'%Y-%m-%d') BETWEEN #{startDate} AND #{endDate}
|
|
|
+ AND cs.type_ = 'VIP' AND cs.del_flag_ = '0'
|
|
|
<include refid="com.ym.mec.biz.dal.dao.CourseScheduleDao.courseIgnore"/>
|
|
|
group by cssp.user_id_) cs ON ss.user_id_ = cs.user_id_
|
|
|
left join sys_user su ON su.id_ = ss.user_id_
|