From 62fcbc4dda69e739f05d547cd0b9a042004186b4 Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 27 Nov 2023 15:05:03 +0800
Subject: [PATCH] 匹配

---
 src/main/resources/mapper/modules/MallProductNftMapper.xml |   22 ++++++++++++++++++++++
 1 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mapper/modules/MallProductNftMapper.xml b/src/main/resources/mapper/modules/MallProductNftMapper.xml
index 3895cb2..3cfd8fd 100644
--- a/src/main/resources/mapper/modules/MallProductNftMapper.xml
+++ b/src/main/resources/mapper/modules/MallProductNftMapper.xml
@@ -32,6 +32,28 @@
         order by a.CREATED_TIME desc
     </select>
 
+    <select id="getBuyRecordList" resultType="cc.mrbird.febs.mall.entity.MallProductBuyRecord">
+        SELECT
+        a.*,
+        b.account_login
+        FROM mall_product_buy_record a
+        left join mall_member b on a.member_id = b.id
+        <where>
+            <if test="record != null" >
+                <if test="record.accountLogin!=null and record.accountLogin!=''">
+                    and a.buy_id in  (
+                    SELECT
+                    c.id
+                    FROM mall_product_buy c
+                    left join mall_member d on c.member_id = d.id
+                        where d.account_login like concat('%',  #{record.accountLogin},'%')
+                    )
+                </if>
+            </if>
+        </where>
+        order by a.CREATED_TIME desc
+    </select>
+
     <select id="getSellList" resultType="cc.mrbird.febs.mall.vo.AdminMallProductSellVo">
         SELECT
             a.*,

--
Gitblit v1.9.1