@@ -229,7 +229,15 @@
DATE_FORMAT( payment_time, '%Y%m%d' ) = DATE_FORMAT( CURDATE()- 1, '%Y%m%d' )
<if test="merchantId != null">
and merchant_id = #{merchantId}
- </if>) yesteramount
+ </if>) yesteramount,
+ (select
+ sum(pay_amount)
+ from
+ oms_order where 1=1
+ <if test="merchantId != null">
+ and merchant_id = #{merchantId}
+ </if>) totalAmount
+
FROM
DUAL