Parcourir la source

商品模块3

e il y a 5 ans
Parent
commit
3043c19d8a

+ 12 - 2
product/src/main/java/com/caimei/module/product/entity/vo/ProductVo.java

@@ -20,6 +20,12 @@ public class ProductVo extends Product {
      * 展示价格
      */
     private BigDecimal retailPrice;
+
+    /**
+     * 复购价格,折后单价
+     */
+    private BigDecimal discountPrice;
+
     /**
      * 标签数组
      */
@@ -40,14 +46,18 @@ public class ProductVo extends Product {
     private Integer productCount;
 
     /**
-     *阶梯价格集合
+     * 阶梯价格集合
      */
     private List<LadderPriceVo> ladderPriceList;
 
     /**
      * 供应商信息
-     *
      */
     private ShopVo shop;
 
+    /**
+     * 前端商品勾选状态
+     */
+    private Boolean productsChecked = false;
+
 }

+ 4 - 0
product/src/main/java/com/caimei/module/product/service/ProductModuleService.java

@@ -44,6 +44,10 @@ public interface ProductModuleService {
      * 获取阶梯价格
      */
     List<LadderPriceVo> findLadderPrice(Integer productID);
+    /**
+     * 获取一条最低阶梯价格
+     */
+    LadderPriceVo findLowerLadderPrice(Integer productID);
     /**
      * 获取模块商品列表
      * @param preferredFlag 新品上线(001) 优惠商品(010) 常用商品(100),三者同时存在111

+ 10 - 0
product/src/main/java/com/caimei/module/product/service/impl/ProductModuleServiceImpl.java

@@ -231,5 +231,15 @@ public class ProductModuleServiceImpl implements ProductModuleService {
         return productModuleDao.findLadderPrice(productID);
     }
 
+    /**
+     * 获取一条最低阶梯价格
+     *
+     * @param productID
+     */
+    @Override
+    public LadderPriceVo findLowerLadderPrice(Integer productID) {
+        return productModuleDao.findLowerLadderPrice(productID);
+    }
+
 
 }