k.e.book.ddh.entity.CcIntegralLuckConfigDO 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_luck_config")
@ApiModel(value="CcIntegralLuckConfigDO", description="CcIntegralLuckConfig")
public class CcIntegralLuckConfigDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 名称
*/
@TableField("name")
private String name;
/**
* 次数
*/
@TableField("num")
private Integer num;
/**
* 消耗积分
*/
@TableField("score")
private Integer score;
/**
* 状态:0=禁用,1=启用
*/
@TableField("status")
private Integer status;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Integer updatetime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
public static CcIntegralLuckConfigVO toVO(CcIntegralLuckConfigDO ccIntegralLuckConfigDO) {
if(ccIntegralLuckConfigDO == null){
return null;
}
CcIntegralLuckConfigVO ccIntegralLuckConfigVO = new CcIntegralLuckConfigVO();
BeanUtils.copyProperties(ccIntegralLuckConfigDO, ccIntegralLuckConfigVO);
return ccIntegralLuckConfigVO;
}
public static CcIntegralLuckConfigDO toDO(CcIntegralLuckConfigAddDTO ccIntegralLuckConfigAddDTO) {
if (ccIntegralLuckConfigAddDTO == null) {
return null;
}
CcIntegralLuckConfigDO ccIntegralLuckConfigDO = new CcIntegralLuckConfigDO();
BeanUtils.copyProperties(ccIntegralLuckConfigAddDTO, ccIntegralLuckConfigDO);
return ccIntegralLuckConfigDO;
}
}