|
@@ -107,7 +107,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>
|
|
@@ -298,4 +298,36 @@
|
|
|
where productID = #{productId}
|
|
|
order by mainFlag DESC
|
|
|
</select>
|
|
|
+ <select id="getProductForm" resultType="com.caimei365.commodity.model.vo.ProductFormVo">
|
|
|
+ select productID as productId, shopID as shopId, name as name, aliasName as aliasName, commodityType as commodityType,
|
|
|
+ bigTypeId as bigTypeId, smallTypeId as smallTypeId, tinyTypeId as tinyTypeId, mainImage as mainImage,
|
|
|
+ brandId as brandId, productType as productType, tags as tags, unit as unit, normalPrice as normalPrice,
|
|
|
+ price1 as price, includedTax as includedTax, minBuyNumber as minBuyNumber, stock as stock,
|
|
|
+ productCategory as productCategory, serviceNumber as serviceNumber, supplierTaxPoint as supplierTaxPoint,
|
|
|
+ addTime as addTime, hasSkuFlag as hasSkuFlag, sellNumber as sellNumber, sortIndex as sortIndex,
|
|
|
+ featuredFlag as featuredFlag, costCheckFlag as costCheckFlag, recommendType as recommendType,
|
|
|
+ price1TextFlag as priceFlag, actFlag as actFlag, ladderPriceFlag as ladderPriceFlag, visibility as visibility,
|
|
|
+ productCode as productCode, updateTime as updateTime, validFlag as validFlag
|
|
|
+ from product
|
|
|
+ where productID = #{productId}
|
|
|
+ </select>
|
|
|
+ <select id="getBrandNameById" resultType="java.lang.String">
|
|
|
+ select name from cm_brand where id = #{brandId}
|
|
|
+ </select>
|
|
|
+ <select id="getProductParameters" resultType="com.caimei365.commodity.model.po.ProductParameterPo">
|
|
|
+ select id, productID as productId, paramsName, paramsContent
|
|
|
+ from cm_product_related_parameters
|
|
|
+ where productId = #{productId} AND delFlag='0'
|
|
|
+ </select>
|
|
|
+ <select id="getProductImages" resultType="com.caimei365.commodity.model.po.ProductImagePo">
|
|
|
+ select productImageID as id, productID as productId, shopId, addTime, image, mainFlag, sortIndex
|
|
|
+ from productimage
|
|
|
+ where productID = #{productId} order by mainFlag desc
|
|
|
+ </select>
|
|
|
+ <select id="getProductDetailInfo" resultType="com.caimei365.commodity.model.po.ProductDetailInfoPo">
|
|
|
+ select productDetailInfoId, productId, detailInfo, serviceInfo, orderInfo, propValueAlias,
|
|
|
+ propValueImages, detailInfoTxt, seoTitle, seoKeyword, seoDes
|
|
|
+ from productdetailinfo
|
|
|
+ where productId = #{productId}
|
|
|
+ </select>
|
|
|
</mapper>
|