소스 검색

自动推荐,bugfix

chao 4 년 전
부모
커밋
eb6760ee57
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/resources/mapper/PageMapper.xml

+ 3 - 3
src/main/resources/mapper/PageMapper.xml

@@ -230,9 +230,9 @@
 			p.mainImage as image,
             IFNULL(p.visibility,3) as visibility
         from product as p
-        where
-			p.validFlag  = 2 and
-			p.tinyTypeID = (select tinyTypeID from product as p1 where p1.productID = #{productId})
+        where p.validFlag  = 2
+        and p.commodityType = (select commodityType from product as p1 where p1.productID = #{productId})
+        and p.smallTypeID = (select smallTypeID from product as p2 where p2.productID = #{productId})
         order by p.sellNumber desc limit 0,7
     </select>
     <select id="findCmPageById" resultType="com.caimei365.commodity.model.vo.CmPageVo">