src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -74,6 +74,9 @@ <if test="record.isHot != null and record.isHot != ''"> and a.is_hot = 1 </if> <if test="record.isNormal != null and record.isNormal != ''"> and a.is_normal = #{record.isNormal} </if> <if test="record.categoryId != null and record.categoryId != ''"> and (c.id = #{record.categoryId} or c.parent_id=#{record.categoryId}) </if>