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

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


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


    /**
     * 规则名称
     */
    @TableField("subject")
    private String subject;
    /**
     * 系列编号
     */
    @TableField("merge_id")
    private Integer mergeId;
    /**
     * 材料数量
     */
    @TableField("quantity")
    private Integer quantity;
    /**
     * 合成藏品编号
     */
    @TableField("product_id")
    private String productId;
    /**
     * 合成盲盒编号
     */
    @TableField("box_id")
    private Integer boxId;
    /**
     * 合成类型:1=藏品,2=盲盒
     */
    @TableField("mergetype")
    private Integer mergetype;
    /**
     * 合成数量
     */
    @TableField("mergeqty")
    private Integer mergeqty;
    /**
     * 合成概率
     */
    @TableField("merpercentage")
    private Integer merpercentage;
    /**
     * 失败销毁数量
     */
    @TableField("losequantity")
    private Integer losequantity;
    /**
     * 逻辑关系:1=或者,2=并且
     */
    @TableField("logic")
    private Integer logic;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;

    public static CcProductMergeRuleVO toVO(CcProductMergeRuleDO ccProductMergeRuleDO) {
        if(ccProductMergeRuleDO == null){
            return null;
        }
        CcProductMergeRuleVO ccProductMergeRuleVO = new CcProductMergeRuleVO();
        BeanUtils.copyProperties(ccProductMergeRuleDO, ccProductMergeRuleVO);
        return ccProductMergeRuleVO;
    }

    public static CcProductMergeRuleDO toDO(CcProductMergeRuleAddDTO ccProductMergeRuleAddDTO) {
        if (ccProductMergeRuleAddDTO == null) {
            return null;
        }
        CcProductMergeRuleDO ccProductMergeRuleDO = new CcProductMergeRuleDO();
        BeanUtils.copyProperties(ccProductMergeRuleAddDTO, ccProductMergeRuleDO);
        return ccProductMergeRuleDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy