|
@@ -4,7 +4,7 @@
|
|
|
<insert id="insertProduct" keyColumn="productID" keyProperty="productId" parameterType="com.caimei365.commodity.model.po.ProductPo" useGeneratedKeys="true">
|
|
|
insert into product (
|
|
|
shopID, name, aliasName, commodityType, bigTypeID, smallTypeID, tinyTypeID, mainImage,
|
|
|
- brandID, productType, tags, unit, normalPrice, price, includedTax, minBuyNumber, stock,
|
|
|
+ brandID, productType, tags, unit, normalPrice, price, price1, includedTax, minBuyNumber, stock,
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
productCategory,
|
|
|
</if>
|
|
@@ -36,7 +36,7 @@
|
|
|
recommendType,
|
|
|
</if>
|
|
|
<if test="priceFlag != null and priceFlag != ''">
|
|
|
- priceFlag,
|
|
|
+ price1TextFlag,
|
|
|
</if>
|
|
|
<if test="actFlag != null and actFlag != ''">
|
|
|
actFlag,
|
|
@@ -74,19 +74,10 @@
|
|
|
<if test="invoiceType != null and invoiceType != ''">
|
|
|
invoiceType,
|
|
|
</if>
|
|
|
- <if test="trainingMethod != null">
|
|
|
- trainingMethod,
|
|
|
- </if>
|
|
|
- <if test="trainingType != null">
|
|
|
- trainingType,
|
|
|
- </if>
|
|
|
- <if test="trainingFee != null">
|
|
|
- trainingFee,
|
|
|
- </if>
|
|
|
updateTime, validFlag
|
|
|
) values (
|
|
|
#{shopId}, #{name}, #{aliasName}, #{commodityType}, #{bigTypeId}, #{smallTypeId}, #{tinyTypeId}, #{mainImage},
|
|
|
- #{brandId}, #{productType}, #{tags}, #{unit}, #{normalPrice}, #{price}, #{includedTax}, #{minBuyNumber}, #{stock},
|
|
|
+ #{brandId}, #{productType}, #{tags}, #{unit}, #{normalPrice}, #{price}, #{price}, #{includedTax}, #{minBuyNumber}, #{stock},
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
#{productCategory},
|
|
|
</if>
|
|
@@ -155,15 +146,6 @@
|
|
|
</if>
|
|
|
<if test="invoiceType != null and invoiceType != ''">
|
|
|
#{invoiceType},
|
|
|
- </if>
|
|
|
- <if test="trainingMethod != null">
|
|
|
- #{trainingMethod},
|
|
|
- </if>
|
|
|
- <if test="trainingType != null">
|
|
|
- #{trainingType},
|
|
|
- </if>
|
|
|
- <if test="trainingFee != null">
|
|
|
- #{trainingFee},
|
|
|
</if>
|
|
|
#{updateTime}, #{validFlag}
|
|
|
)
|
|
@@ -173,7 +155,7 @@
|
|
|
shopID = #{shopId}, name = #{name}, aliasName = #{aliasName}, commodityType = #{commodityType},
|
|
|
bigTypeId = #{bigTypeId}, smallTypeId = #{smallTypeId}, tinyTypeId = #{tinyTypeId}, mainImage = #{mainImage},
|
|
|
brandId = #{brandId}, productType = #{productType}, tags = #{tags}, unit = #{unit}, normalPrice = #{normalPrice},
|
|
|
- price = #{price}, includedTax = #{includedTax}, minBuyNumber = #{minBuyNumber}, stock = #{stock},
|
|
|
+ price = #{price}, price1 = #{price}, includedTax = #{includedTax}, minBuyNumber = #{minBuyNumber}, stock = #{stock},
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
productCategory = #{productCategory},
|
|
|
</if>
|
|
@@ -205,7 +187,7 @@
|
|
|
recommendType = #{recommendType},
|
|
|
</if>
|
|
|
<if test="priceFlag != null and priceFlag != ''">
|
|
|
- priceFlag = #{priceFlag},
|
|
|
+ price1TextFlag = #{priceFlag},
|
|
|
</if>
|
|
|
<if test="actFlag != null and actFlag != ''">
|
|
|
actFlag = #{actFlag},
|
|
@@ -243,15 +225,6 @@
|
|
|
<if test="invoiceType != null and invoiceType != ''">
|
|
|
invoiceType = #{invoiceType},
|
|
|
</if>
|
|
|
- <if test="trainingMethod != null">
|
|
|
- trainingMethod = #{trainingMethod},
|
|
|
- </if>
|
|
|
- <if test="trainingType != null">
|
|
|
- trainingType = #{trainingType},
|
|
|
- </if>
|
|
|
- <if test="trainingFee != null">
|
|
|
- trainingFee = #{trainingFee},
|
|
|
- </if>
|
|
|
updateTime = #{updateTime}, validFlag = #{validFlag}
|
|
|
where productID = #{productId}
|
|
|
</update>
|
|
@@ -351,10 +324,12 @@
|
|
|
p.shopID as shopId,
|
|
|
p.`name` as `name`,
|
|
|
p.mainImage as image,
|
|
|
- p.price,
|
|
|
+ p.price1 as price,
|
|
|
p.unit as unit,
|
|
|
- p.priceFlag,
|
|
|
- IFNULL(p.visibility,3) as visibility
|
|
|
+ p.price1TextFlag as priceFlag,
|
|
|
+ IFNULL(p.visibility,3) as visibility,
|
|
|
+ p.price8Text as beautyActFlag,
|
|
|
+ p.productType
|
|
|
from product p
|
|
|
where p.shopID = #{shopId}
|
|
|
and p.visibility in
|