Commit b79bbad99ae9c6caf5a003d4ee664b2348ee2a57
1 parent
4fc10eff
【新增】商城: 积分商城 DO
Showing
2 changed files
with
118 additions
and
0 deletions
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/dal/dataobject/point/PointActivityDO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.promotion.dal.dataobject.point; | ||
| 2 | + | ||
| 3 | +import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||
| 4 | +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 6 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 7 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 8 | +import lombok.Data; | ||
| 9 | +import lombok.EqualsAndHashCode; | ||
| 10 | +import lombok.ToString; | ||
| 11 | + | ||
| 12 | +/** | ||
| 13 | + * 积分商城活动 DO | ||
| 14 | + * | ||
| 15 | + * @author HUIHUI | ||
| 16 | + */ | ||
| 17 | +@TableName(value = "promotion_point_activity", autoResultMap = true) | ||
| 18 | +@KeySequence("promotion_point_activity_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | ||
| 19 | +@Data | ||
| 20 | +@EqualsAndHashCode(callSuper = true) | ||
| 21 | +@ToString(callSuper = true) | ||
| 22 | +public class PointActivityDO extends BaseDO { | ||
| 23 | + | ||
| 24 | + /** | ||
| 25 | + * 积分商城活动编号 | ||
| 26 | + */ | ||
| 27 | + @TableId | ||
| 28 | + private Long id; | ||
| 29 | + /** | ||
| 30 | + * 积分商城活动商品 | ||
| 31 | + */ | ||
| 32 | + private Long spuId; | ||
| 33 | + /** | ||
| 34 | + * 活动状态 | ||
| 35 | + * | ||
| 36 | + * 枚举 {@link CommonStatusEnum 对应的类} | ||
| 37 | + */ | ||
| 38 | + private Integer status; | ||
| 39 | + /** | ||
| 40 | + * 备注 | ||
| 41 | + */ | ||
| 42 | + private String remark; | ||
| 43 | + /** | ||
| 44 | + * 排序 | ||
| 45 | + */ | ||
| 46 | + private Integer sort; | ||
| 47 | + | ||
| 48 | +} |
yudao-module-mall/yudao-module-promotion-biz/src/main/java/cn/iocoder/yudao/module/promotion/dal/dataobject/point/PointProductDO.java
0 → 100644
| 1 | +package cn.iocoder.yudao.module.promotion.dal.dataobject.point; | ||
| 2 | + | ||
| 3 | +import cn.iocoder.yudao.framework.common.enums.CommonStatusEnum; | ||
| 4 | +import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO; | ||
| 5 | +import com.baomidou.mybatisplus.annotation.KeySequence; | ||
| 6 | +import com.baomidou.mybatisplus.annotation.TableId; | ||
| 7 | +import com.baomidou.mybatisplus.annotation.TableName; | ||
| 8 | +import lombok.*; | ||
| 9 | + | ||
| 10 | +/** | ||
| 11 | + * 积分商城商品 DO | ||
| 12 | + * | ||
| 13 | + * @author HUIHUI | ||
| 14 | + */ | ||
| 15 | +@TableName("promotion_point_product") | ||
| 16 | +@KeySequence("promotion_point_product_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库,可不写。 | ||
| 17 | +@Data | ||
| 18 | +@EqualsAndHashCode(callSuper = true) | ||
| 19 | +@ToString(callSuper = true) | ||
| 20 | +@Builder | ||
| 21 | +@NoArgsConstructor | ||
| 22 | +@AllArgsConstructor | ||
| 23 | +public class PointProductDO extends BaseDO { | ||
| 24 | + | ||
| 25 | + /** | ||
| 26 | + * 积分商城商品编号 | ||
| 27 | + */ | ||
| 28 | + @TableId | ||
| 29 | + private Long id; | ||
| 30 | + /** | ||
| 31 | + * 积分商城活动 id | ||
| 32 | + * | ||
| 33 | + * 关联 {@link PointActivityDO#getId()} | ||
| 34 | + */ | ||
| 35 | + private Long activityId; | ||
| 36 | + /** | ||
| 37 | + * 商品 SPU 编号 | ||
| 38 | + */ | ||
| 39 | + private Long spuId; | ||
| 40 | + /** | ||
| 41 | + * 商品 SKU 编号 | ||
| 42 | + */ | ||
| 43 | + private Long skuId; | ||
| 44 | + /** | ||
| 45 | + * 可兑换数量 | ||
| 46 | + */ | ||
| 47 | + private Integer maxCount; | ||
| 48 | + /** | ||
| 49 | + * 兑换积分 | ||
| 50 | + */ | ||
| 51 | + private Integer point; | ||
| 52 | + /** | ||
| 53 | + * 兑换金额,单位:分 | ||
| 54 | + */ | ||
| 55 | + private Integer price; | ||
| 56 | + /** | ||
| 57 | + * 兑换类型 | ||
| 58 | + * 1. 积分 | ||
| 59 | + * 2. 积分 + 钱 | ||
| 60 | + * 3. 直接购买 | ||
| 61 | + */ | ||
| 62 | + private Integer type; | ||
| 63 | + /** | ||
| 64 | + * 积分商城商品状态 | ||
| 65 | + * | ||
| 66 | + * 枚举 {@link CommonStatusEnum 对应的类} | ||
| 67 | + */ | ||
| 68 | + private Integer activityStatus; | ||
| 69 | + | ||
| 70 | +} |