yonge 5 年之前
父節點
當前提交
eefd2daf87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml

+ 1 - 1
mec-biz/src/main/resources/config/mybatis/StudentPaymentOrderMapper.xml

@@ -499,7 +499,7 @@
     
     <select id="queryIncomeStatisticsWithCurrentMonth" resultType="map">
     	select count(*) total,sum(actual_amount_) total_num_ from student_payment_order
-    	where actual_amount_ &gt; 0 and DATE_FORMAT(create_time_, '%Y%m' ) = DATE_FORMAT( CURDATE() , '%Y%m' )
+    	where actual_amount_ &gt; 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>