k.e.book.ddh.entity.CcQueueLogDO 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
*
* @see k.e.book.common.enums.QueueLogStatus
*
* @see k.e.book.common.enums.QueueLogType
*/
@EqualsAndHashCode(callSuper = false)
@Data
@TableName("cc_queue_log")
@ApiModel(value="CcQueueLogDO", description="CcQueueLog")
public class CcQueueLogDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 内容
*/
@TableField("content")
private String content;
/**
* 状态 0=未完成,1=已完成
*/
@TableField("status")
private Integer status;
/**
* 操作时间
*/
@TableField("createtime")
private Long createtime;
/**
* 更新时间
*/
@TableField("updatetime")
private Long updatetime;
/**
* 类型
*/
@TableField("type")
private String type;
public static CcQueueLogVO toVO(CcQueueLogDO ccQueueLogDO) {
if(ccQueueLogDO == null){
return null;
}
CcQueueLogVO ccQueueLogVO = new CcQueueLogVO();
BeanUtils.copyProperties(ccQueueLogDO, ccQueueLogVO);
return ccQueueLogVO;
}
public static CcQueueLogDO toDO(CcQueueLogAddDTO ccQueueLogAddDTO) {
if (ccQueueLogAddDTO == null) {
return null;
}
CcQueueLogDO ccQueueLogDO = new CcQueueLogDO();
BeanUtils.copyProperties(ccQueueLogAddDTO, ccQueueLogDO);
return ccQueueLogDO;
}
}