Explorar o código

spu加推广费

Ben hai 10 meses
pai
achega
9ca85f9a7e

+ 4 - 0
feifan-module-mall/feifan-module-product-biz/src/main/java/cn/newfeifan/mall/module/product/controller/app/spu/vo/AppProductSpuDetailRespVO.java

@@ -13,6 +13,10 @@ public class AppProductSpuDetailRespVO {
     @Schema(description = "商品 SPU 编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
     private Long id;
 
+    //add by Ben20240529
+    @Schema(description = "最大推广费,单位使用:分", requiredMode = Schema.RequiredMode.REQUIRED, example = "968") // 通过会员等级,计算出折扣后价格
+    private Integer promotionFee;
+
     // ========== 基本信息 =========
 
     @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "非繁")

+ 5 - 0
feifan-module-mall/feifan-module-product-biz/src/main/java/cn/newfeifan/mall/module/product/dal/dataobject/spu/ProductSpuDO.java

@@ -38,6 +38,11 @@ public class ProductSpuDO extends BaseDO {
 
     // ========== 基本信息 =========
 
+    /**
+     * 推广费, 单位: 分,值为sku中最大的推广费
+     */
+    private Integer promotionFee;
+
     /**
      * 商品名称
      */