瀏覽代碼

商城小程序促销bug fix

Aslee 3 年之前
父節點
當前提交
d8657dfbc6
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/main/resources/mappings/modules/weisha/CmOrganizePromotionMapper.xml

+ 3 - 3
src/main/resources/mappings/modules/weisha/CmOrganizePromotionMapper.xml

@@ -99,7 +99,7 @@
 
     <select id="findPromotionProduct" resultType="com.caimei.modules.product.entity.Product">
         SELECT
-        cop.id as productID,p.mainImage,p.name,cop.price as price1,
+        cop.id as productID,p.mainImage,p.name,cop.price as price,
         cp.reducedPrice AS "reducedPrice",
         s.name AS "shopName"
         FROM
@@ -115,7 +115,7 @@
 
     <select id="findGiftProduct" resultType="com.caimei.modules.product.entity.Product">
            SELECT
-                cop.id as productID,p.mainImage,p.name,cop.price as price1,
+                cop.id as productID,p.mainImage,p.name,cop.price as price,
                 cp.reducedPrice AS "reducedPrice",
                 s.name AS "shopName",
                 cpg.number AS "giftNumber"
@@ -427,7 +427,7 @@
         limit 1
     </select>
     <select id="getPresentPriceById" resultType="java.lang.Double">
-        select price1 from product where productID=#{productId}
+        select price from product where productID=#{productId}
     </select>
     <select id="getProductByProductId" resultType="com.caimei.modules.product.entity.Product">
         select