Browse Source

商品详情添加属性

Aslee 4 năm trước cách đây
mục cha
commit
8f44c6018d

+ 15 - 0
src/main/java/com/caimei/model/vo/ProductVo.java

@@ -157,4 +157,19 @@ public class ProductVo {
      * 相关参数
      */
     private List<RelatedParametersPo> parametersList;
+
+    /**
+     * 商品编码
+     */
+    private String productCode;
+
+    /**
+     * 库存
+     */
+    private Integer stock;
+
+    /**
+     * 商品备注
+     */
+    private String productRemark;
 }

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

@@ -92,7 +92,10 @@
             p.bigTypeID as bigTypeId,
             p.smallTypeID as smallTypeId,
             p.tinyTypeID as tinyTypeId,
-            p.brandID as brandId
+            p.brandID as brandId,
+            p.productRemarks as productRemark,
+            p.productCode,
+            p.stock
         from cm_organize_product cop
                  left join product p on cop.productId = p.productID
         where cop.delFlag = 0 and cop.id = #{productId}