chao 3 anos atrás
pai
commit
a0dc6d12b0

+ 2 - 0
src/main/java/com/caimei/www/pojo/page/ProductDetail.java

@@ -65,4 +65,6 @@ public class ProductDetail extends ProductList {
 	 * 培训费用(售价未包含)
 	 */
 	private BigDecimal trainingFee;
+
+	private Integer productType;
 }

+ 5 - 1
src/main/resources/mapper/ProductMapper.xml

@@ -37,7 +37,7 @@
 			s.name as smallTypeText,
 			b.bigTypeID as bigTypeId,
 			b.name as bigTypeText,
-
+			p.productType,
 			p.shopID as shopId,
 			sh.name as shopTitle,
 			sh.businessScope as businessScope,
@@ -66,7 +66,9 @@
         select
 			p.productID as id,
 			p.`name` as `name`,
+			p.productType,
 			p.mainImage as image
+
         from product as p
         left join cm_product_recommend as pr on pr.recommendProductID = p.productID
         where
@@ -77,6 +79,7 @@
         select
 			p.productID as id,
 			p.`name` as `name`,
+			p.productType,
 			p.mainImage as image
         from product as p
         where
@@ -109,6 +112,7 @@
 			p.priceFlag,
 			p.ladderPriceFlag as ladderFlag,
 			p.validFlag as validFlag,
+			p.productType,
 			p.stock as stock
 		from product p
 		where p.productID = #{productId}