|
@@ -8,6 +8,10 @@
|
|
select a.id AS "id",
|
|
select a.id AS "id",
|
|
a.commodityType AS "commodityType",
|
|
a.commodityType AS "commodityType",
|
|
a.name AS "name",
|
|
a.name AS "name",
|
|
|
|
+ a.shopId AS "shopId",
|
|
|
|
+ s.name AS "shopName",
|
|
|
|
+ s.logo AS "shopLogo",
|
|
|
|
+ a.productLink AS "productLink",
|
|
a.alias AS "alias",
|
|
a.alias AS "alias",
|
|
a.discription AS "discription",
|
|
a.discription AS "discription",
|
|
a.seoKeyword AS "seoKeyword",
|
|
a.seoKeyword AS "seoKeyword",
|
|
@@ -35,6 +39,7 @@
|
|
cbt.name as "typeName"
|
|
cbt.name as "typeName"
|
|
from cm_baike_product a
|
|
from cm_baike_product a
|
|
left join cm_baike_type cbt on a.typeId = cbt.id
|
|
left join cm_baike_type cbt on a.typeId = cbt.id
|
|
|
|
+ left join shop s on a.shopId = s.shopID
|
|
where a.id = #{productId} and a.status = 1 and NOW() > publishTime;
|
|
where a.id = #{productId} and a.status = 1 and NOW() > publishTime;
|
|
</select>
|
|
</select>
|
|
|
|
|