浏览代码

呵呵sku bugfix

zhijiezhao 2 年之前
父节点
当前提交
acc3b08db8
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      src/main/resources/mapper/CollageMapper.xml
  2. 1 1
      src/main/resources/mapper/ProductMapper.xml

+ 2 - 2
src/main/resources/mapper/CollageMapper.xml

@@ -49,7 +49,7 @@
                chc.productId,
                p.mainImage                      as productImage,
                p.name                           as productName,
-               chc.price,
+               chc.price                        as price,
                (select price from cm_hehe_sku where productId=chc.productId order by price asc limit 1) as normalPrice,
                chc.memberNum,
                count(chcm.id)                   as existNum,
@@ -61,7 +61,7 @@
         from cm_hehe_collage chc
         left join cm_hehe_collage_member chcm on chc.id = chcm.collageId
         left join cm_order co on chcm.orderId = co.orderID
-        left join cm_hehe_collage_product chcp on chc.productId = chcp.productId
+            left join cm_hehe_collage_product chcp on chc.productId = chcp.productId
         left join product p on chcp.productId = p.productID
         where chc.id = #{collageId}
           and co.receiptStatus = 3

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

@@ -72,7 +72,7 @@
         limit 1
     </select>
     <select id="findCollageProduct" resultType="com.caimei.model.po.CmHeheCollageProductPo">
-        select chcs.skuId, chcp.productId, chcs.collagePrice, chcp.limitedNum, chcp.unlimitedFlag, chcp.memberNum
+        select chcs.skuId, chcp.productId, chcs.collagePrice as price, chcp.limitedNum, chcp.unlimitedFlag, chcp.memberNum
         from cm_hehe_collage_product chcp
         left join cm_hehe_collage_sku chcs on chcp.productId = chcs.productId
         where chcs.skuId = #{skuId}