|
|
@@ -259,7 +259,7 @@ |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="sumMerchant" parameterType="com.iformall.domain.po.WxCardSpend" resultType="hashmap"> |
|
|
<select id="sumMerchant" parameterType="com.iformall.domain.po.WxCardSpend" resultType="hashmap"> |
|
|
select cs.merchant_id |
|
|
|
|
|
|
|
|
select cs.merchant_id, |
|
|
IFNULL(SUM(cs.`deduction_amount`),0) as sum_deduction_amount, |
|
|
IFNULL(SUM(cs.`deduction_amount`),0) as sum_deduction_amount, |
|
|
IFNULL(SUM(cs.`payment`),0) as sum_payment, |
|
|
IFNULL(SUM(cs.`payment`),0) as sum_payment, |
|
|
IFNULL(SUM(cs.`real_payment`),0) as sum_real_payment, |
|
|
IFNULL(SUM(cs.`real_payment`),0) as sum_real_payment, |
|
|
|