|
@@ -771,15 +771,13 @@
|
|
|
FROM
|
|
|
student_payment_order spo
|
|
|
LEFT JOIN sporadic_charge_info sci ON spo.music_group_id_=sci.id_
|
|
|
+ LEFT JOIN student s ON spo.user_id_=s.user_id_
|
|
|
LEFT JOIN sys_user su ON spo.user_id_ = su.id_
|
|
|
WHERE
|
|
|
spo.status_ = 'SUCCESS'
|
|
|
AND spo.type_ = 'DOUBLE_ELEVEN2020'
|
|
|
AND sci.title_ LIKE '双十一%'
|
|
|
- AND sci.organ_id_ IN
|
|
|
- <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
|
|
|
- #{organId}
|
|
|
- </foreach>
|
|
|
+ AND s.teacher_id_= #{teacherId}
|
|
|
<if test="search!=null and search!=''">
|
|
|
AND (su.phone_=#{search} OR su.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
|
</if>
|
|
@@ -794,15 +792,13 @@
|
|
|
FROM
|
|
|
student_payment_order spo
|
|
|
LEFT JOIN sporadic_charge_info sci ON spo.music_group_id_=sci.id_
|
|
|
+ LEFT JOIN student s ON spo.user_id_=s.user_id_
|
|
|
LEFT JOIN sys_user su ON spo.user_id_ = su.id_
|
|
|
WHERE
|
|
|
- spo.status_ = 'SUCCESS'
|
|
|
- AND spo.type_ = 'DOUBLE_ELEVEN2020'
|
|
|
- AND sci.title_ LIKE '双十一%'
|
|
|
- AND sci.organ_id_ IN
|
|
|
- <foreach collection="organIds" item="organId" open="(" close=")" separator=",">
|
|
|
- #{organId}
|
|
|
- </foreach>
|
|
|
+ spo.status_ = 'SUCCESS'
|
|
|
+ AND spo.type_ = 'DOUBLE_ELEVEN2020'
|
|
|
+ AND sci.title_ LIKE '双十一%'
|
|
|
+ AND s.teacher_id_= #{teacherId}
|
|
|
<if test="search!=null and search!=''">
|
|
|
AND (su.phone_=#{search} OR su.username_ LIKE CONCAT('%', #{search}, '%'))
|
|
|
</if>;
|