ソースを参照

订单商品阶梯价格列表

Aslee 4 年 前
コミット
4c177f5564

+ 47 - 0
base-module/src/main/java/com/caimei/module/base/entity/po/OrderProductLadderPrice.java

@@ -0,0 +1,47 @@
+package com.caimei.module.base.entity.po;
+
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * order_product_ladder_price
+ * @author 
+ */
+@Data
+public class OrderProductLadderPrice implements Serializable {
+    private Integer id;
+
+    /**
+     * 订单商品Id
+     */
+    private Integer orderProductId;
+
+    /**
+     * 第几阶梯
+     */
+    private Integer ladderNum;
+
+    /**
+     * 购买数量
+     */
+    private Integer buyNum;
+
+    /**
+     * 购买价格
+     */
+    private BigDecimal buyPrice;
+
+    /**
+     * 创建时间
+     */
+    private Date createDate;
+
+    /**
+     * 更新时间
+     */
+    private Date updateDate;
+
+    private static final long serialVersionUID = 1L;
+}

+ 5 - 0
base-module/src/main/java/com/caimei/module/base/entity/vo/BigtypeVo.java

@@ -19,4 +19,9 @@ public class BigtypeVo extends Bigtype {
      * 二级菜单列表
      */
     private List<SmalltypeVo> SmalltypeList;
+
+    /**
+     * 是否选中标识
+     */
+    private Boolean isChecked;
 }

+ 13 - 0
base-module/src/main/java/com/caimei/module/base/entity/vo/OrderProductLadderPriceVo.java

@@ -0,0 +1,13 @@
+package com.caimei.module.base.entity.vo;
+
+import com.caimei.module.base.entity.po.OrderProductLadderPrice;
+import lombok.Data;
+/**
+ * order_product_ladder_price
+ *
+ * @author Aslee
+ */
+
+@Data
+public class OrderProductLadderPriceVo extends OrderProductLadderPrice {
+}

+ 5 - 0
base-module/src/main/java/com/caimei/module/base/entity/vo/SmalltypeVo.java

@@ -19,4 +19,9 @@ public class SmalltypeVo extends Smalltype {
      * 三级菜单列表
      */
     private List<TinytypeVo> tinytypeList;
+
+    /**
+     * 是否选中标识
+     */
+    private Boolean isChecked;
 }

+ 4 - 0
base-module/src/main/java/com/caimei/module/base/entity/vo/TinytypeVo.java

@@ -13,4 +13,8 @@ import lombok.EqualsAndHashCode;
 @EqualsAndHashCode(callSuper = true)
 @Data
 public class TinytypeVo extends Tinytype {
+    /**
+     * 是否选中标识
+     */
+    private Boolean isChecked;
 }

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

@@ -81,16 +81,19 @@ public class ProductModuleServiceImpl implements ProductModuleService {
             bigTypeID = productModuleDao.getBigTypeIdByTinyTypeId(typeId);
         }
         BigtypeVo bigType = productModuleDao.getBigTypeByBigTypeId(bigTypeID);
+        bigType.setIsChecked(false);
         List<SmalltypeVo> smallTypeList = productModuleDao.getSmallType(bigTypeID,source);
         for (SmalltypeVo smallType : smallTypeList) {
             String caiMeiImage = ProductUtils.getImageURL("caiMeiImage", null, 0, domain);
             smallType.setWwwIcon(StringUtils.isEmpty(smallType.getWwwIcon())?caiMeiImage:smallType.getWwwIcon());
             smallType.setCrmIcon(StringUtils.isEmpty(smallType.getCrmIcon())?caiMeiImage:smallType.getCrmIcon());
+            smallType.setIsChecked(false);
             List<TinytypeVo> tinytypeList = productModuleDao.getTinytype(smallType.getSmallTypeID(), source);
             if (!CollectionUtils.isEmpty(tinytypeList)) {
                 for (TinytypeVo tinyType : tinytypeList) {
                     tinyType.setWwwIcon(StringUtils.isEmpty(tinyType.getWwwIcon())?caiMeiImage:tinyType.getWwwIcon());
                     tinyType.setCrmIcon(StringUtils.isEmpty(tinyType.getCrmIcon())?caiMeiImage:tinyType.getCrmIcon());
+                    tinyType.setIsChecked(false);
                 }
                 smallType.setTinytypeList(tinytypeList);
             }