5 vuotta sitten
vanhempi
commit
fbb0a34ff6
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      pcbms/src/main/resources/mapper/GoodsMapper.xml

+ 3 - 0
pcbms/src/main/resources/mapper/GoodsMapper.xml

@@ -196,6 +196,9 @@
             <if test="tagId != null">
                 and g.tag_id = #{tagId}
             </if>
+            <if test="tagId == null">
+                and g.tag_id !=-1 and g.tag_id !=-2
+            </if>
         </where>
         order by g.indate desc
     </select>