|
@@ -59,7 +59,7 @@
|
|
|
<select id="getFloorContentById" resultType="com.caimei365.commodity.model.vo.FloorContentVo">
|
|
|
select
|
|
|
id, floorId, centreId, templateType, pcAdsImage1, pcAdsImage2, pcAdsImage3,
|
|
|
- appletsAdsImage1, appletsAdsImage2, appletsAdsImage3, adsLink1, adsLink2, adsLink3,productType
|
|
|
+ appletsAdsImage1, appletsAdsImage2, appletsAdsImage3, adsLink1, adsLink2, adsLink3
|
|
|
from new_page_floor_content where floorId = #{id}
|
|
|
</select>
|
|
|
<select id="getFloorImageById" resultType="com.caimei365.commodity.model.vo.FloorImageVo">
|
|
@@ -144,20 +144,21 @@
|
|
|
p.smallTypeID as smallTypeId,
|
|
|
p.tinyTypeID as tinyTypeId,
|
|
|
p.visibility as visibility,
|
|
|
- cshd.detailTalkFlag as detailTalkFlag
|
|
|
+ cshd.detailTalkFlag as detailTalkFlag,
|
|
|
+ p.productType
|
|
|
from product p
|
|
|
left join cm_second_hand_detail cshd on p.productID = cshd.productID
|
|
|
where p.productID = #{productId} and p.validFlag = 2
|
|
|
</select>
|
|
|
<select id="getSupplierFloorImage" resultType="com.caimei365.commodity.model.vo.ShopFloorVo">
|
|
|
- select id, crmImage, wwwImage, wwwLink,productType
|
|
|
+ select id, crmImage, wwwImage, wwwLink
|
|
|
from new_page_quality_supplier_image
|
|
|
limit 1
|
|
|
</select>
|
|
|
<select id="getSupplierImage" resultType="com.caimei365.commodity.model.vo.ShopImageVo">
|
|
|
select
|
|
|
id, supplierName, image, link, sort, wwwEnabledStatus, crmEnabledStatus,
|
|
|
- createBy, createDate, updateBy, updateDate, delFlag,productType
|
|
|
+ createBy, createDate, updateBy, updateDate, delFlag
|
|
|
from
|
|
|
new_page_quality_supplier
|
|
|
where
|
|
@@ -177,7 +178,7 @@
|
|
|
productCategory, serviceNumber, taxPoint, supplierTaxPoint, priceFlag, actFlag, ladderPriceFlag,
|
|
|
addTime, hasSkuFlag, sellNumber, sortIndex, featuredFlag, costCheckFlag, recommendType, machineType,
|
|
|
productCode, updateTime, validFlag, searchKey, allAreaFlag, step, costPrice, provinceIds, qualificationImg,
|
|
|
- trainingMethod, trainingType ,trainingFee, productRemarks,productDetail as productDetailChose
|
|
|
+ trainingMethod, trainingType ,trainingFee, productRemarks,productDetail as productDetailChose,productType
|
|
|
from product
|
|
|
where productID = #{productId}
|
|
|
</select>
|
|
@@ -211,7 +212,8 @@
|
|
|
p.bigTypeID as bigTypeId,
|
|
|
p.smallTypeID as smallTypeId,
|
|
|
p.tinyTypeID as tinyTypeId,
|
|
|
- rpp.currentPrice as discountPrice
|
|
|
+ rpp.currentPrice as discountPrice,
|
|
|
+ p.productType
|
|
|
from
|
|
|
repeat_purchase_price rpp
|
|
|
left join product p on rpp.productId = p.productID
|
|
@@ -245,7 +247,8 @@
|
|
|
p.actStatus,
|
|
|
p.`name` as `name`,
|
|
|
p.mainImage as image,
|
|
|
- IFNULL(p.visibility,3) as visibility
|
|
|
+ IFNULL(p.visibility,3) as visibility,
|
|
|
+ p.productType
|
|
|
from product as p
|
|
|
left join cm_product_recommend as pr on pr.recommendProductID = p.productID
|
|
|
where
|
|
@@ -258,7 +261,8 @@
|
|
|
p.actStatus,
|
|
|
p.`name` as `name`,
|
|
|
p.mainImage as image,
|
|
|
- IFNULL(p.visibility,3) as visibility
|
|
|
+ IFNULL(p.visibility,3) as visibility,
|
|
|
+ p.productType
|
|
|
from product as p
|
|
|
where p.validFlag = 2
|
|
|
and p.commodityType = (select commodityType from product as p1 where p1.productID = #{productId})
|
|
@@ -277,7 +281,8 @@
|
|
|
headText,
|
|
|
redPacketBeginTime,
|
|
|
redPacketEndTime,
|
|
|
- infoBarStatus
|
|
|
+ infoBarStatus,
|
|
|
+ productType
|
|
|
from cm_page
|
|
|
where id = #{pageId}
|
|
|
and enabledStatus = '1'
|