From c1edc9a21ca9322157cc095109f2e334fd27f950 Mon Sep 17 00:00:00 2001 From: gongbiao Date: Tue, 13 Aug 2019 12:32:41 +0800 Subject: [PATCH] =?UTF-8?q?[=E7=A7=AF=E5=88=86=E5=8F=98=E6=9B=B4=E8=AE=B0?= =?UTF-8?q?=E5=BD=95][=E4=BF=AE=E6=94=B9][=E8=8E=B7=E5=8F=96=E7=A7=AF?= =?UTF-8?q?=E5=88=86=E7=BB=9F=E8=AE=A1=E4=BF=A1=E6=81=AF]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/WxCreditHistoryMapper.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml index 841e9f101..c0e7ea1d6 100644 --- a/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml +++ b/mallinkService/src/main/resources/mapper/WxCreditHistoryMapper.xml @@ -211,6 +211,8 @@ 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 + 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 group by credit.c_user_id ) credit @@ -219,6 +221,8 @@ @@ -226,6 +230,8 @@ @@ -233,6 +239,8 @@