|
|
|
@@ -210,7 +210,7 @@ |
|
|
|
<select id="getTotalCreditAmount" parameterType="com.iformall.domain.po.WxCreditHistory" |
|
|
|
resultType="java.lang.Long"> |
|
|
|
select ifnull(sum(credit.amount),0) amount from ( |
|
|
|
select max(credit.credit_amount) amount,credit.c_user_id from wx_credit_history credit |
|
|
|
select min(credit.credit_amount) amount,credit.c_user_id from wx_credit_history credit |
|
|
|
INNER JOIN wx_c_user_basic_info basic ON basic.id = credit.c_user_id |
|
|
|
LEFT JOIN wx_merchant merchant ON credit.merchant_id = merchant.id |
|
|
|
<include refid="customWhereConditions"/> |
|
|
|
|