From 55810dbe3aa36eb2bbcc4113eb2c85fc3b11b48d Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Thu, 02 Jun 2022 16:05:38 +0800 Subject: [PATCH] fix --- src/main/resources/mapper/modules/MallGoodsMapper.xml | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/resources/mapper/modules/MallGoodsMapper.xml b/src/main/resources/mapper/modules/MallGoodsMapper.xml index e332809..e7b8dc7 100644 --- a/src/main/resources/mapper/modules/MallGoodsMapper.xml +++ b/src/main/resources/mapper/modules/MallGoodsMapper.xml @@ -84,8 +84,11 @@ <if test="record.isNormal != null and record.isNormal != ''"> and a.is_normal = #{record.isNormal} </if> - <if test="record.goodsType != null and record.goodsType != ''"> - and a.goods_type = #{record.goodsType} + <if test="record.goodsType != null and record.goodsType != '' and record.goodsType != 3"> + and a.goods_type = #{record.goodsType} and a.present_price != 0 + </if> + <if test="record.goodsType == 3"> + and a.present_price = 0 </if> <if test="record.categoryId != null and record.categoryId != ''"> and (c.id = #{record.categoryId} or c.parent_id=#{record.categoryId}) -- Gitblit v1.9.1