Commit 63542b4ccbadd1a119169005eced042dcab0554a
1 parent
b30fc280
商城:product:完善 ProductSkuDO 表
Showing
2 changed files
with
39 additions
and
23 deletions
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/sku/ProductSkuDO.java
| 1 | 1 | package cn.iocoder.yudao.module.product.dal.dataobject.sku; |
| 2 | 2 | |
| 3 | -import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | |
| 4 | 3 | import cn.iocoder.yudao.framework.common.util.json.JsonUtils; |
| 5 | 4 | import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; |
| 6 | 5 | import cn.iocoder.yudao.module.product.dal.dataobject.property.ProductPropertyDO; |
| ... | ... | @@ -37,23 +36,17 @@ public class ProductSkuDO extends BaseDO { |
| 37 | 36 | private Long id; |
| 38 | 37 | /** |
| 39 | 38 | * SPU 编号 |
| 40 | - * <p> | |
| 39 | + * | |
| 41 | 40 | * 关联 {@link ProductSpuDO#getId()} |
| 42 | 41 | */ |
| 43 | 42 | private Long spuId; |
| 44 | 43 | /** |
| 45 | - * SPU 名字 | |
| 46 | - * | |
| 47 | - * 冗余 {@link ProductSkuDO#getSpuName()} | |
| 48 | - */ | |
| 49 | - private String spuName; | |
| 50 | - /** | |
| 51 | 44 | * 属性数组,JSON 格式 |
| 52 | 45 | */ |
| 53 | 46 | @TableField(typeHandler = PropertyTypeHandler.class) |
| 54 | 47 | private List<Property> properties; |
| 55 | 48 | /** |
| 56 | - * 销售价格,单位:分 | |
| 49 | + * 商品价格,单位:分 | |
| 57 | 50 | */ |
| 58 | 51 | private Integer price; |
| 59 | 52 | /** |
| ... | ... | @@ -65,7 +58,7 @@ public class ProductSkuDO extends BaseDO { |
| 65 | 58 | */ |
| 66 | 59 | private Integer costPrice; |
| 67 | 60 | /** |
| 68 | - * SKU 的条形码 | |
| 61 | + * 商品条码 | |
| 69 | 62 | */ |
| 70 | 63 | private String barCode; |
| 71 | 64 | /** |
| ... | ... | @@ -73,20 +66,10 @@ public class ProductSkuDO extends BaseDO { |
| 73 | 66 | */ |
| 74 | 67 | private String picUrl; |
| 75 | 68 | /** |
| 76 | - * SKU 状态 | |
| 77 | - * <p> | |
| 78 | - * 枚举 {@link CommonStatusEnum} | |
| 79 | - */ | |
| 80 | - private Integer status; | |
| 81 | - /** | |
| 82 | 69 | * 库存 |
| 83 | 70 | */ |
| 84 | 71 | private Integer stock; |
| 85 | 72 | /** |
| 86 | - * 预警预存 | |
| 87 | - */ | |
| 88 | - private Integer warnStock; | |
| 89 | - /** | |
| 90 | 73 | * 商品重量,单位:kg 千克 |
| 91 | 74 | */ |
| 92 | 75 | private Double weight; |
| ... | ... | @@ -96,6 +79,23 @@ public class ProductSkuDO extends BaseDO { |
| 96 | 79 | private Double volume; |
| 97 | 80 | |
| 98 | 81 | /** |
| 82 | + * 一级分销的佣金,单位:分 | |
| 83 | + */ | |
| 84 | + private Integer subCommissionFirstPrice; | |
| 85 | + /** | |
| 86 | + * 二级分销的佣金,单位:分 | |
| 87 | + */ | |
| 88 | + private Integer subCommissionSecondPrice; | |
| 89 | + | |
| 90 | + // ========== 营销相关字段 ========= | |
| 91 | + | |
| 92 | + // ========== 统计相关字段 ========= | |
| 93 | + /** | |
| 94 | + * 商品销量 | |
| 95 | + */ | |
| 96 | + private Integer salesCount; | |
| 97 | + | |
| 98 | + /** | |
| 99 | 99 | * 商品属性 |
| 100 | 100 | */ |
| 101 | 101 | @Data |
| ... | ... | @@ -105,13 +105,13 @@ public class ProductSkuDO extends BaseDO { |
| 105 | 105 | |
| 106 | 106 | /** |
| 107 | 107 | * 属性编号 |
| 108 | - * <p> | |
| 108 | + * | |
| 109 | 109 | * 关联 {@link ProductPropertyDO#getId()} |
| 110 | 110 | */ |
| 111 | 111 | private Long propertyId; |
| 112 | 112 | /** |
| 113 | 113 | * 属性值编号 |
| 114 | - * <p> | |
| 114 | + * | |
| 115 | 115 | * 关联 {@link ProductPropertyValueDO#getId()} |
| 116 | 116 | */ |
| 117 | 117 | private Long valueId; |
| ... | ... | @@ -133,5 +133,15 @@ public class ProductSkuDO extends BaseDO { |
| 133 | 133 | |
| 134 | 134 | } |
| 135 | 135 | |
| 136 | + // TODO 芋艿:integral from y | |
| 137 | + // TODO 芋艿:pinkPrice from y | |
| 138 | + // TODO 芋艿:seckillPrice from y | |
| 139 | + // TODO 芋艿:pinkStock from y | |
| 140 | + // TODO 芋艿:seckillStock from y | |
| 141 | + | |
| 142 | + // TODO 芋艿:quota from c | |
| 143 | + // TODO 芋艿:quotaShow from c | |
| 144 | + // TODO 芋艿:attrValue from c | |
| 145 | + | |
| 136 | 146 | } |
| 137 | 147 | ... | ... |
yudao-module-mall/yudao-module-product-biz/src/main/java/cn/iocoder/yudao/module/product/dal/dataobject/spu/ProductSpuDO.java
| ... | ... | @@ -170,6 +170,13 @@ public class ProductSpuDO extends BaseDO { |
| 170 | 170 | * 赠送积分 |
| 171 | 171 | */ |
| 172 | 172 | private Integer giveIntegral; |
| 173 | + /** | |
| 174 | + * 赠送的优惠劵编号的数组 | |
| 175 | + * | |
| 176 | + * 对应 CouponTemplateDO 的 id 属性 | |
| 177 | + */ | |
| 178 | + @TableField(typeHandler = JacksonTypeHandler.class) | |
| 179 | + private List<Long> giveCouponTemplateIds; | |
| 173 | 180 | |
| 174 | 181 | /** |
| 175 | 182 | * 分销类型 |
| ... | ... | @@ -201,5 +208,4 @@ public class ProductSpuDO extends BaseDO { |
| 201 | 208 | * 浏览量 |
| 202 | 209 | */ |
| 203 | 210 | private Integer browseCount; |
| 204 | - | |
| 205 | 211 | } | ... | ... |