From 2a9d6a842666d7aae86fdcccf0da13f6842b991b Mon Sep 17 00:00:00 2001
From: KKSU <15274802129@163.com>
Date: Mon, 27 Nov 2023 16:36:43 +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