From e60762cf03cf72aa88edda530d36f69744ec2c83 Mon Sep 17 00:00:00 2001
From: xiaoyong931011 <15274802129@163.com>
Date: Fri, 16 Jul 2021 16:16:20 +0800
Subject: [PATCH] 202107016

---
 gc-user/src/main/resources/mapper/user/AccountMapper.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/gc-user/src/main/resources/mapper/user/AccountMapper.xml b/gc-user/src/main/resources/mapper/user/AccountMapper.xml
index ef1568b..c3ade75 100644
--- a/gc-user/src/main/resources/mapper/user/AccountMapper.xml
+++ b/gc-user/src/main/resources/mapper/user/AccountMapper.xml
@@ -252,13 +252,17 @@
             a.order_no orderNo,
             a.score scoreReward,
             a.amount amountReward,
+            c.nick_name nickname,
+            c.mobile_phone phone,
             (select sum(score) from xzx_jhy_order_items where b.id = order_id) score,
             (select sum(score/ 40) from xzx_jhy_order_items where b.id = order_id) amount
         FROM
             xzx_user_head_details a
                 LEFT JOIN xzx_jhy_order b ON a.order_no = b.order_no
+                LEFT JOIN xzx_user_info c on a.user_id = c.user_id
         WHERE
             a.head_user_id = #{userId}
+        order by b.CREATED_TIME desc
     </select>
 
 

--
Gitblit v1.9.1