Browse Source

采美sku bugfix

zhijiezhao 2 years ago
parent
commit
dff0f3847c

+ 0 - 1
src/main/java/com/caimei365/commodity/service/impl/PageServiceImpl.java

@@ -186,7 +186,6 @@ public class PageServiceImpl implements PageService {
             }
             pageFloorList.forEach(po -> po.setFloorImageList4(floorImageLists));
         }
-        log.info("pagefloorlist-----------------------"+pageFloorList);
         map.put("pageFloorList", pageFloorList);
 
         // 优质供应商

+ 5 - 0
src/main/resources/mapper/PageMapper.xml

@@ -934,6 +934,11 @@
     </select>
     <select id="getNewFloorList" resultType="com.caimei365.commodity.model.vo.ProductItemVo">
         SELECT DISTINCT
+        (select price from cm_sku where productID=p.productID order by price asc limit 1)as price,
+        (select unit from cm_sku where productID=p.productID order by price asc limit 1)as unit,
+        (select normalPrice from cm_sku where productID=p.productID order by price asc limit 1)as normalPrice,
+        (select minBuyNumber from cm_sku where productID=p.productID order by price asc limit 1)as minBuyNumber,
+        (select ladderPriceFlag from cm_sku where productID=p.productID order by price asc limit 1)as ladderPriceFlag,
         p.productID,
         p.actStatus,
         p.name,

+ 1 - 1
src/main/resources/mapper/ShopMapper.xml

@@ -560,7 +560,7 @@
                productName               as productName,
                qualificationTime         as qualificationTime,
                qualificationLink         as qualificationLink
-        from product
+        from product p
         where productID = #{productId}
     </select>
     <select id="getBrandNameById" resultType="java.lang.String">