From aadf58d2110d3f71582bd31d28d0e50cbb878ced Mon Sep 17 00:00:00 2001
From: hellolujian <1370256381@qq.com>
Date: Fri, 14 Sep 2018 19:43:29 +0800
Subject: [PATCH] =?UTF-8?q?[fix]=E7=BA=A2=E5=8C=85=E5=85=B3=E8=81=94global?=
=?UTF-8?q?pay=5Fopenid?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../mappers/redpack/ActPartnerLMLogMapper.xml | 24 +++++++++++++------
.../ActRedPacketsCustomerOrdersMapper.xml | 8 +++++--
2 files changed, 23 insertions(+), 9 deletions(-)
diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/redpack/ActPartnerLMLogMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/redpack/ActPartnerLMLogMapper.xml
index 0ca13ae4e..a0663b740 100644
--- a/src/main/resources/au/com/royalpay/payment/manage/mappers/redpack/ActPartnerLMLogMapper.xml
+++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/redpack/ActPartnerLMLogMapper.xml
@@ -52,12 +52,18 @@
+
SELECT
a.*,
b.client_moniker,
- c.headimg,
- c.nickname
+ ifnull(c.headimg, c2.headimg) headimg,
+ ifnull(c.nickname, c2.nickname) nickname
FROM act_red_packets_customer_orders a
INNER JOIN sys_clients b ON a.client_id = b.client_id
LEFT JOIN sys_customer_relation c ON c.wechat_openid = a.open_id
+ LEFT JOIN sys_customer_relation c2 ON c2.globalpay_openid = a.open_id
WHERE act_id = #{actId}
AND b.client_moniker = #{client_moniker}