ソースを参照

商家认证查询

liude 1 年間 前
コミット
706a766111

+ 9 - 1
vehicle-server/src/main/resources/mapper/MerchantMapper.xml

@@ -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