k.e.book.ddh.entity.CcItemMarketDO 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_item_market")
@ApiModel(value="CcItemMarketDO", description="CcItemMarket")
public class CcItemMarketDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 父编号
*/
@TableField("parent_id")
private Integer parentId;
/**
* 产品编号
*/
@TableField("product_id")
private Long productId;
/**
* 项目编号
*/
@TableField("item_id")
private Long itemId;
/**
* 用户藏品表id
*/
@TableField("user_collect_id")
private Long userCollectId;
/**
* 发布者编号
*/
@TableField("user_id")
private Long userId;
/**
* 订单ID,无代表空投,转赠
*/
@TableField("orderid")
private String orderid;
/**
* 层次序号
*/
@TableField("level")
private Integer level;
/**
* 金额数量,单位:分
*/
@TableField("amount")
private Double amount;
/**
* 币种
*/
@TableField("priceunit")
private String priceunit;
/**
* 热度
*/
@TableField("likes")
private Integer likes;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 平台服务费,单位:分
*/
@TableField("service_fee")
private Long serviceFee;
/**
* 创作者版权分成,单位:分
*/
@TableField("copyright_fee")
private Long copyrightFee;
/**
* 支付通道费,单位:分
*/
@TableField("payment_fee")
private Long paymentFee;
/**
* 提现服务费,单位:分
*/
@TableField("withdraw_fee")
private Long withdrawFee;
/**
* 到账金额,单位:分
*/
@TableField("paid_amount")
private Double paidAmount;
/**
* 到账状态:0=未知,1=申请中,2=打款中,3=成功,4=拒绝
*/
@TableField("paid_status")
private Integer paidStatus;
/**
* 状态:0=隐藏,1=挂售中,2=已卖出,3=锁定中,4=取消挂售,5=系统取消,6=后台取消
*/
@TableField("status")
private String status;
/**
* 结算账户信息
*/
@TableField("settle_account")
private String settleAccount;
/**
* createdAt
*/
@TableField("created_at")
private Date createdAt;
/**
* updatedAt
*/
@TableField("updated_at")
private Date updatedAt;
/**
* deletedAt
*/
@TableField("deleted_at")
private Date deletedAt;
public static CcItemMarketVO toVO(CcItemMarketDO ccItemMarketDO) {
if(ccItemMarketDO == null){
return null;
}
CcItemMarketVO ccItemMarketVO = new CcItemMarketVO();
BeanUtils.copyProperties(ccItemMarketDO, ccItemMarketVO);
return ccItemMarketVO;
}
public static CcItemMarketDO toDO(CcItemMarketAddDTO ccItemMarketAddDTO) {
if (ccItemMarketAddDTO == null) {
return null;
}
CcItemMarketDO ccItemMarketDO = new CcItemMarketDO();
BeanUtils.copyProperties(ccItemMarketAddDTO, ccItemMarketDO);
return ccItemMarketDO;
}
}