|
@@ -245,8 +245,9 @@
|
|
LEFT JOIN student_payment_order spo ON stu.user_id_=spo.user_id_ AND status_='SUCCESS' AND actual_amount_>0
|
|
LEFT JOIN student_payment_order spo ON stu.user_id_=spo.user_id_ AND status_='SUCCESS' AND actual_amount_>0
|
|
WHERE
|
|
WHERE
|
|
su.del_flag_=0
|
|
su.del_flag_=0
|
|
- AND su.organ_id_ IS NOT NULL
|
|
|
|
- AND su.user_type_ LIKE '%STUDENT%'
|
|
|
|
|
|
+ AND su.organ_id_ IS NOT NULL
|
|
|
|
+ AND su.user_type_ LIKE '%STUDENT%'
|
|
|
|
+ AND DATE_FORMAT(spo.create_time_, '%Y-%m-%d')<=#{dayStr}
|
|
GROUP BY organ_id_
|
|
GROUP BY organ_id_
|
|
ORDER BY organ_id_;
|
|
ORDER BY organ_id_;
|
|
</select>
|
|
</select>
|