k.e.book.ddh.entity.CcIntegralTransferDO 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_transfer")
@ApiModel(value="CcIntegralTransferDO", description="CcIntegralTransfer")
public class CcIntegralTransferDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 转赠人ID
*/
@TableField("user_id")
private Integer userId;
/**
* 接收人ID
*/
@TableField("send_id")
private Integer sendId;
/**
* 积分数量
*/
@TableField("quantity")
private Integer quantity;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 状态:0=未知,1=进行中,2=已取消,3=已转赠
*/
@TableField("status")
private Boolean status;
public static CcIntegralTransferVO toVO(CcIntegralTransferDO ccIntegralTransferDO) {
if(ccIntegralTransferDO == null){
return null;
}
CcIntegralTransferVO ccIntegralTransferVO = new CcIntegralTransferVO();
BeanUtils.copyProperties(ccIntegralTransferDO, ccIntegralTransferVO);
return ccIntegralTransferVO;
}
public static CcIntegralTransferDO toDO(CcIntegralTransferAddDTO ccIntegralTransferAddDTO) {
if (ccIntegralTransferAddDTO == null) {
return null;
}
CcIntegralTransferDO ccIntegralTransferDO = new CcIntegralTransferDO();
BeanUtils.copyProperties(ccIntegralTransferAddDTO, ccIntegralTransferDO);
return ccIntegralTransferDO;
}
}