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