5 년 전
부모
커밋
fbb0a34ff6
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  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>