package com.dsh.activity.entity;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.baomidou.mybatisplus.extension.activerecord.Model;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.experimental.Accessors;
|
|
import java.io.Serializable;
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* <p>
|
* 积分商品
|
* </p>
|
*
|
* @author jqs
|
* @since 2023-07-04
|
*/
|
@Data
|
@EqualsAndHashCode(callSuper = false)
|
@Accessors(chain = true)
|
@TableName("t_points_merchandise")
|
public class PointsMerchandise extends Model<PointsMerchandise> {
|
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Integer id;
|
/**
|
* 类型(1=实体商品,2=课包商品,3=门票商品)
|
*/
|
private Integer type;
|
/**
|
* 商品名称
|
*/
|
private String name;
|
/**
|
* 课包id
|
*/
|
private Integer coursePackageId;
|
/**
|
* 原价
|
*/
|
private BigDecimal price;
|
/**
|
* 兑换方式(1=积分,2=现金+积分)
|
*/
|
private Integer redemptionMethod;
|
/**
|
* 所需现金
|
*/
|
private BigDecimal cash;
|
/**
|
* 所属积分
|
*/
|
private BigDecimal integral;
|
/**
|
* 商品封面
|
*/
|
private String cover;
|
/**
|
* 商品图片
|
*/
|
private String productImages;
|
/**
|
* 用户人群(1=全部用户,2=年度会员,3=已有学员用户)
|
*/
|
private Integer userPopulation;
|
/**
|
* 发放数量
|
*/
|
private Integer quantityIssued;
|
/**
|
* 限领数量
|
*/
|
private Integer pickUpQuantity;
|
/**
|
* 开始时间
|
*/
|
private Date startTime;
|
/**
|
* 结束时间
|
*/
|
private Date endTime;
|
/**
|
* 使用范围(1=全国,2=指定城市,3=指定门店)
|
*/
|
private Integer useScope;
|
/**
|
* 省
|
*/
|
private String province;
|
/**
|
* 省编号
|
*/
|
private String provinceCode;
|
/**
|
* 市
|
*/
|
private String city;
|
/**
|
* 市编号
|
*/
|
private String cityCode;
|
/**
|
* 兑换说明
|
*/
|
private String redemptionInstructions;
|
/**
|
* 排序
|
*/
|
private Integer sort;
|
/**
|
* 状态(1=正常,2=冻结,3=删除)
|
*/
|
private Integer state;
|
/**
|
* 添加时间
|
*/
|
private Date insertTime;
|
|
|
@Override
|
protected Serializable pkVal() {
|
return this.id;
|
}
|
|
}
|