商城:product:完善 ProductSkuDO 表

pull/2/head
YunaiV 2023-04-19 16:30:57 +08:00
parent b30fc28021
commit 63542b4ccb
2 changed files with 39 additions and 23 deletions

View File

@ -1,6 +1,5 @@
package cn.iocoder.yudao.module.product.dal.dataobject.sku;
import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum;
import cn.iocoder.yudao.framework.common.util.json.JsonUtils;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import cn.iocoder.yudao.module.product.dal.dataobject.property.ProductPropertyDO;
@ -37,23 +36,17 @@ public class ProductSkuDO extends BaseDO {
private Long id;
/**
* SPU
* <p>
*
* {@link ProductSpuDO#getId()}
*/
private Long spuId;
/**
* SPU
*
* {@link ProductSkuDO#getSpuName()}
*/
private String spuName;
/**
* JSON
*/
@TableField(typeHandler = PropertyTypeHandler.class)
private List<Property> properties;
/**
*
*
*/
private Integer price;
/**
@ -65,27 +58,17 @@ public class ProductSkuDO extends BaseDO {
*/
private Integer costPrice;
/**
* SKU
*
*/
private String barCode;
/**
*
*/
private String picUrl;
/**
* SKU
* <p>
* {@link CommonStatusEnum}
*/
private Integer status;
/**
*
*/
private Integer stock;
/**
*
*/
private Integer warnStock;
/**
* kg
*/
@ -95,6 +78,23 @@ public class ProductSkuDO extends BaseDO {
*/
private Double volume;
/**
*
*/
private Integer subCommissionFirstPrice;
/**
*
*/
private Integer subCommissionSecondPrice;
// ========== 营销相关字段 =========
// ========== 统计相关字段 =========
/**
*
*/
private Integer salesCount;
/**
*
*/
@ -105,13 +105,13 @@ public class ProductSkuDO extends BaseDO {
/**
*
* <p>
*
* {@link ProductPropertyDO#getId()}
*/
private Long propertyId;
/**
*
* <p>
*
* {@link ProductPropertyValueDO#getId()}
*/
private Long valueId;
@ -133,5 +133,15 @@ public class ProductSkuDO extends BaseDO {
}
// TODO 芋艿integral from y
// TODO 芋艿pinkPrice from y
// TODO 芋艿seckillPrice from y
// TODO 芋艿pinkStock from y
// TODO 芋艿seckillStock from y
// TODO 芋艿quota from c
// TODO 芋艿quotaShow from c
// TODO 芋艿attrValue from c
}

View File

@ -170,6 +170,13 @@ public class ProductSpuDO extends BaseDO {
*
*/
private Integer giveIntegral;
/**
*
*
* CouponTemplateDO id
*/
@TableField(typeHandler = JacksonTypeHandler.class)
private List<Long> giveCouponTemplateIds;
/**
*
@ -201,5 +208,4 @@ public class ProductSpuDO extends BaseDO {
*
*/
private Integer browseCount;
}