|
@@ -226,39 +226,41 @@
|
|
|
|
|
|
<select id="selectAdminLiveStudentPage" resultType="com.yonge.cooleshow.biz.dal.vo.LiveCourseGroupStudentVo">
|
|
|
select
|
|
|
- cssp.id_ as paymentId,
|
|
|
+ a.id_ as paymentId,
|
|
|
su.id_ as studentId,
|
|
|
su.username_ as studentName,
|
|
|
- sum(cssp.actual_price_) as price,
|
|
|
- cssp.order_no_ as orderNo,
|
|
|
+ a.actual_price_ as price,
|
|
|
+ a.order_no_ as orderNo,
|
|
|
su.phone_ as phone,
|
|
|
- cssp.created_time_ as payTime
|
|
|
- from course_schedule_student_payment cssp
|
|
|
- left join sys_user su on cssp.user_id_ = su.id_
|
|
|
+ a.create_time_ as payTime
|
|
|
+ from user_order_detail as a
|
|
|
+ left join user_order as o on a.order_no_ = o.order_no_
|
|
|
+ left join sys_user as su on o.user_id_ = su.id_
|
|
|
<where>
|
|
|
+ a.good_type_ = 'LIVE' and o.status_ = 'PAID'
|
|
|
<if test="param.courseGroupId != null">
|
|
|
- and #{param.courseGroupId} = cssp.course_group_id_
|
|
|
+ and #{param.courseGroupId} = a.biz_id_
|
|
|
</if>
|
|
|
<if test="param.search != null and param.search != ''">
|
|
|
and (
|
|
|
- cssp.course_group_id_ like concat('%',#{param.search},'%')
|
|
|
+ a.biz_id_ like concat('%',#{param.search},'%')
|
|
|
or su.id_ like concat('%',#{param.search},'%')
|
|
|
or su.username_ like concat('%',#{param.search},'%')
|
|
|
or su.phone_ like concat('%',#{param.search},'%')
|
|
|
)
|
|
|
</if>
|
|
|
<if test="param.orderNo != null and param.orderNo != ''">
|
|
|
- and cssp.order_no_ like concat('%',#{param.orderNo},'%')
|
|
|
+ and a.order_no_ like concat('%',#{param.orderNo},'%')
|
|
|
</if>
|
|
|
<if test="param.startTime != null">
|
|
|
- and #{param.startTime} <= cssp.created_time_
|
|
|
+ and #{param.startTime} <= a.create_time_
|
|
|
</if>
|
|
|
<if test="param.endTime != null">
|
|
|
- and #{param.endTime} >= cssp.created_time_
|
|
|
+ and #{param.endTime} >= a.create_time_
|
|
|
</if>
|
|
|
</where>
|
|
|
- group by cssp.user_id_
|
|
|
- order by cssp.id_ desc
|
|
|
+ group by o.user_id_
|
|
|
+ order by a.id_ desc
|
|
|
</select>
|
|
|
|
|
|
<select id="selectAdminLivePlan" resultType="com.yonge.cooleshow.biz.dal.vo.LiveCourseGroupPlanVo">
|