From e847891c4f6f12cee5e764f8c1fad001496b9740 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 09 Aug 2021 16:30:21 +0800 Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop --- gc-user/src/main/resources/mapper/user/UserHeadRelateMapper.xml | 14 ++++++++++++++ 1 files changed, 14 insertions(+), 0 deletions(-) diff --git a/gc-user/src/main/resources/mapper/user/UserHeadRelateMapper.xml b/gc-user/src/main/resources/mapper/user/UserHeadRelateMapper.xml index 0b0db58..2ed7578 100644 --- a/gc-user/src/main/resources/mapper/user/UserHeadRelateMapper.xml +++ b/gc-user/src/main/resources/mapper/user/UserHeadRelateMapper.xml @@ -16,4 +16,18 @@ where a.head_user_id=#{userId} group by a.head_user_id </select> + + <select id="selectHeadTeamListInPage" resultType="com.xzx.gc.user.vo.HeadTeamVo"> + select + from_base64(b.nick_name) name, + b.avatar, + date_format(a.CREATED_TIME, '%Y/%m/%d') bindTime, + a.score, + a.amount, + date_format((select c.CREATED_TIME from xzx_jhy_order c where b.user_id=c.user_id and c.status=3 order by id desc limit 1), '%Y/%m/%d') lastOrderTime + from xzx_user_head_relate a + inner join xzx_user_info b on a.user_id=b.user_id + where a.head_user_id=#{userId} + order by a.id desc + </select> </mapper> \ No newline at end of file -- Gitblit v1.9.1