|
@@ -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, price1, includedTax, minBuyNumber, stock,
|
|
|
+ brandID, productType, tags, unit, normalPrice, price, includedTax, minBuyNumber, stock,
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
productCategory,
|
|
|
</if>
|
|
@@ -36,7 +36,7 @@
|
|
|
recommendType,
|
|
|
</if>
|
|
|
<if test="priceFlag != null and priceFlag != ''">
|
|
|
- price1TextFlag,
|
|
|
+ priceFlag,
|
|
|
</if>
|
|
|
<if test="actFlag != null and actFlag != ''">
|
|
|
actFlag,
|
|
@@ -86,7 +86,7 @@
|
|
|
updateTime, validFlag
|
|
|
) values (
|
|
|
#{shopId}, #{name}, #{aliasName}, #{commodityType}, #{bigTypeId}, #{smallTypeId}, #{tinyTypeId}, #{mainImage},
|
|
|
- #{brandId}, #{productType}, #{tags}, #{unit}, #{normalPrice}, #{price}, #{price}, #{includedTax}, #{minBuyNumber}, #{stock},
|
|
|
+ #{brandId}, #{productType}, #{tags}, #{unit}, #{normalPrice}, #{price}, #{includedTax}, #{minBuyNumber}, #{stock},
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
#{productCategory},
|
|
|
</if>
|
|
@@ -173,7 +173,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}, price1 = #{price}, includedTax = #{includedTax}, minBuyNumber = #{minBuyNumber}, stock = #{stock},
|
|
|
+ price = #{price}, includedTax = #{includedTax}, minBuyNumber = #{minBuyNumber}, stock = #{stock},
|
|
|
<if test="productCategory != null and productCategory != ''">
|
|
|
productCategory = #{productCategory},
|
|
|
</if>
|
|
@@ -205,7 +205,7 @@
|
|
|
recommendType = #{recommendType},
|
|
|
</if>
|
|
|
<if test="priceFlag != null and priceFlag != ''">
|
|
|
- price1TextFlag = #{priceFlag},
|
|
|
+ priceFlag = #{priceFlag},
|
|
|
</if>
|
|
|
<if test="actFlag != null and actFlag != ''">
|
|
|
actFlag = #{actFlag},
|
|
@@ -351,11 +351,10 @@
|
|
|
p.shopID as shopId,
|
|
|
p.`name` as `name`,
|
|
|
p.mainImage as image,
|
|
|
- p.price1 as price,
|
|
|
+ p.price,
|
|
|
p.unit as unit,
|
|
|
- p.price1TextFlag as priceFlag,
|
|
|
- IFNULL(p.visibility,3) as visibility,
|
|
|
- p.price8Text as beautyActFlag
|
|
|
+ p.priceFlag,
|
|
|
+ IFNULL(p.visibility,3) as visibility
|
|
|
from product p
|
|
|
where p.shopID = #{shopId}
|
|
|
and p.visibility in
|
|
@@ -374,11 +373,10 @@
|
|
|
p.mainImage as image,
|
|
|
p.unit,
|
|
|
p.productCode as code,
|
|
|
- p.price1TextFlag as priceFlag,
|
|
|
- p.price1 as price,
|
|
|
+ p.priceFlag,
|
|
|
+ p.price,
|
|
|
p.shopID as shopId,
|
|
|
p.searchKey as keyword,
|
|
|
- p.price8Text as beautyActFlag,
|
|
|
p.minBuyNumber as minBuyNumber,
|
|
|
p.maxBuyNumber as maxBuyNumber,
|
|
|
p.ladderPriceFlag,
|
|
@@ -469,8 +467,8 @@
|
|
|
<select id="getProductForm" resultType="com.caimei365.commodity.model.vo.ProductFormVo">
|
|
|
select productID as productId, shopID as shopId, name, aliasName, commodityType, mainImage, stock, invoiceType,
|
|
|
bigTypeID as bigTypeId, smallTypeID as smallTypeId, tinyTypeID as tinyTypeId, searchKey, visibility,
|
|
|
- brandID as brandId, productType, tags, unit, normalPrice, price1 as price, includedTax, minBuyNumber,
|
|
|
- productCategory, serviceNumber, supplierTaxPoint, price1TextFlag as priceFlag, actFlag, ladderPriceFlag,
|
|
|
+ brandID as brandId, productType, tags, unit, normalPrice, price, includedTax, minBuyNumber,
|
|
|
+ productCategory, serviceNumber, supplierTaxPoint, priceFlag, actFlag, ladderPriceFlag,
|
|
|
addTime, hasSkuFlag, sellNumber, sortIndex, featuredFlag, costCheckFlag, recommendType, machineType,
|
|
|
productCode, updateTime, validFlag, searchKey, allAreaFlag, step, costPrice, provinceIds, qualificationImg,
|
|
|
trainingMethod, trainingType ,trainingFee
|
|
@@ -498,7 +496,7 @@
|
|
|
</select>
|
|
|
<select id="getProductShopById" resultType="com.caimei365.commodity.model.vo.ShopVo">
|
|
|
select userID as userId, shopID as shopId, name, sname as shortName, linkMan, contractMobile,
|
|
|
- contractEmail1 as contractEmail, contractEmail1 as email, provinceID as proviceId, cityID as cityId, townID as townId,
|
|
|
+ contractEmail, contractEmail as email, provinceID as proviceId, cityID as cityId, townID as townId,
|
|
|
address, socialCreditCode, businessLicenseImage as businessLicense, firstShopType, secondShopType,
|
|
|
mainpro as mainProduct, productDesc as mainProductDesc,legalPerson,registeredCapital,fax as faxNumber,
|
|
|
nature as companyNature, turnover, medicalPracticeLicenseImg1 as medicalPracticeLicense, info as shopDesc,
|