|
@@ -499,7 +499,7 @@
|
|
|
|
|
|
<select id="queryIncomeStatisticsWithCurrentMonth" resultType="map">
|
|
|
select count(*) total,sum(actual_amount_) total_num_ from student_payment_order
|
|
|
- where actual_amount_ > 0 and DATE_FORMAT(create_time_, '%Y%m' ) = DATE_FORMAT( CURDATE() , '%Y%m' )
|
|
|
+ where actual_amount_ > 0 and DATE_FORMAT(create_time_, '%Y%m' ) = DATE_FORMAT( CURDATE() , '%Y%m' ) AND status_ = 'SUCCESS'
|
|
|
<if test="organId != null">
|
|
|
and FIND_IN_SET(organ_id_,#{organId})
|
|
|
</if>
|