k.e.book.ddh.entity.CcIntegralOrderGoodsDO Maven / Gradle / Ivy
package k.e.book.ddh.entity;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;
import java.io.Serializable;
import java.util.Date;
/**
* @author kk
* @date 2023-05-21 11:01
*/
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_integral_order_goods")
@ApiModel(value="CcIntegralOrderGoodsDO", description="CcIntegralOrderGoods")
public class CcIntegralOrderGoodsDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 订单关联ID
*/
@TableField("order_id")
private Integer orderId;
/**
* 订单编号
*/
@TableField("order_no")
private String orderNo;
/**
* 会员ID
*/
@TableField("user_id")
private Integer userId;
/**
* 商品ID
*/
@TableField("goods_id")
private Integer goodsId;
/**
* 订单金额
*/
@TableField("order_amount")
private Integer orderAmount;
/**
* 订单积分
*/
@TableField("order_score")
private Integer orderScore;
/**
* 类型:0=未知,1=藏品,2=实物,3=虚拟物品
*/
@TableField("type")
private Integer type;
/**
* 藏品ID
*/
@TableField("goods_product_id")
private Integer goodsProductId;
/**
* 名称
*/
@TableField("goods_name")
private String goodsName;
/**
* 封面图
*/
@TableField("goods_image")
private String goodsImage;
/**
* 长封面图
*/
@TableField("goods_longimage")
private String goodsLongimage;
/**
* 源文件
*/
@TableField("goods_sourcefile")
private String goodsSourcefile;
/**
* 证书链接
*/
@TableField("goods_certurl")
private String goodsCerturl;
/**
* 证书交易哈希
*/
@TableField("goods_certtxhash")
private String goodsCerttxhash;
/**
* 作品名称
*/
@TableField("goods_subject")
private String goodsSubject;
/**
* 金额数量
*/
@TableField("goods_amount")
private Integer goodsAmount;
/**
* 积分数量
*/
@TableField("goods_score")
private Integer goodsScore;
/**
* 是否3D模型:0=否,1=是
*/
@TableField("goods_model3d")
private Integer goodsModel3d;
/**
* 正方形3D模型
*/
@TableField("goods_model3dsquare")
private Integer goodsModel3dsquare;
/**
* 3d文件
*/
@TableField("goods_model3dfile")
private String goodsModel3dfile;
/**
* 添加时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
public static CcIntegralOrderGoodsVO toVO(CcIntegralOrderGoodsDO ccIntegralOrderGoodsDO) {
if(ccIntegralOrderGoodsDO == null){
return null;
}
CcIntegralOrderGoodsVO ccIntegralOrderGoodsVO = new CcIntegralOrderGoodsVO();
BeanUtils.copyProperties(ccIntegralOrderGoodsDO, ccIntegralOrderGoodsVO);
return ccIntegralOrderGoodsVO;
}
public static CcIntegralOrderGoodsDO toDO(CcIntegralOrderGoodsAddDTO ccIntegralOrderGoodsAddDTO) {
if (ccIntegralOrderGoodsAddDTO == null) {
return null;
}
CcIntegralOrderGoodsDO ccIntegralOrderGoodsDO = new CcIntegralOrderGoodsDO();
BeanUtils.copyProperties(ccIntegralOrderGoodsAddDTO, ccIntegralOrderGoodsDO);
return ccIntegralOrderGoodsDO;
}
}