From e970047c7a4537810b17db3ee3c5d0a7ab4a87df Mon Sep 17 00:00:00 2001
From: Hentua <wangdoubleone@gmail.com>
Date: Mon, 24 Apr 2023 10:50:19 +0800
Subject: [PATCH] fix

---
 src/main/resources/mapper/modules/MallGoodsMapper.xml        |    3 +++
 src/main/java/cc/mrbird/febs/mall/dto/MallGoodsQueryDto.java |    3 +++
 2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/dto/MallGoodsQueryDto.java b/src/main/java/cc/mrbird/febs/mall/dto/MallGoodsQueryDto.java
index 93b29a8..019495a 100644
--- a/src/main/java/cc/mrbird/febs/mall/dto/MallGoodsQueryDto.java
+++ b/src/main/java/cc/mrbird/febs/mall/dto/MallGoodsQueryDto.java
@@ -40,4 +40,7 @@
 
     @ApiModelProperty(value = "1-付费商品 2-积分商品")
     private Integer goodsType;
+
+    @ApiModelProperty(value = "商品级别 1-会员 2-代理 3-股东")
+    private Integer goodsLevel;
 }
diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml
index d93f9d7..c545dc1 100644
--- a/src/main/resources/mapper/modules/MallGoodsMapper.xml
+++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -95,6 +95,9 @@
                     <if test="record.goodsType == 3">
                         and a.present_price = 0
                     </if>
+                    <if test="record.goodsLevel == null">
+                        and a.goods_level=#{record.goodsLevel}
+                    </if>
                     <if test="record.categoryId != null and record.categoryId != ''">
                         and (c.id = #{record.categoryId} or c.parent_id=#{record.categoryId})
                     </if>

--
Gitblit v1.9.1