All Downloads are FREE. Search and download functionalities are using the official Maven repository.

k.e.book.ddh.entity.CcProductMergeDO 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_product_merge")
@ApiModel(value="CcProductMergeDO", description="CcProductMerge")
public class CcProductMergeDO extends Model  {
    private static final long serialVersionUID = 1L;


    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /**
     * 标题
     */
    @TableField("subject")
    private String subject;
    /**
     * 系列名称
     */
    @TableField("series")
    private String series;
    /**
     * 内容
     */
    @TableField("content")
    private String content;
    /**
     * 关联产品编号
     */
    @TableField("product_ids")
    private String productIds;
    /**
     * 发行数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 已合成数量
     */
    @TableField("soldQty")
    private Integer soldQty;
    /**
     * 开始时间
     */
    @TableField("starttime")
    private Integer starttime;
    /**
     * 结束时间
     */
    @TableField("endtime")
    private Integer endtime;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;
    /**
     * 优先开始时间
     */
    @TableField("beforestarttime")
    private Integer beforestarttime;
    /**
     * 优先结束时间
     */
    @TableField("beforeendtime")
    private Integer beforeendtime;
    /**
     * 白名单开关:0=关闭,1=开启
     */
    @TableField("whitelist")
    private Integer whitelist;
    /**
     * 状态:0=隐藏,1=上架,2=下架
     */
    @TableField("status")
    private String status;

    public static CcProductMergeVO toVO(CcProductMergeDO ccProductMergeDO) {
        if(ccProductMergeDO == null){
            return null;
        }
        CcProductMergeVO ccProductMergeVO = new CcProductMergeVO();
        BeanUtils.copyProperties(ccProductMergeDO, ccProductMergeVO);
        return ccProductMergeVO;
    }

    public static CcProductMergeDO toDO(CcProductMergeAddDTO ccProductMergeAddDTO) {
        if (ccProductMergeAddDTO == null) {
            return null;
        }
        CcProductMergeDO ccProductMergeDO = new CcProductMergeDO();
        BeanUtils.copyProperties(ccProductMergeAddDTO, ccProductMergeDO);
        return ccProductMergeDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy