k.e.book.ddh.entity.CcUserProductMergeDO 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_user_product_merge")
@ApiModel(value="CcUserProductMergeDO", description="CcUserProductMerge")
public class CcUserProductMergeDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 用户编号
*/
@TableField("user_id")
private Integer userId;
/**
* 合成系列编号
*/
@TableField("merge_id")
private Integer mergeId;
/**
* 材料编号
*/
@TableField("item_ids")
private String itemIds;
/**
* 合成项目编号
*/
@TableField("merge_item_id")
private String mergeItemId;
/**
* 销毁项目编号
*/
@TableField("lose_item_id")
private String loseItemId;
/**
* 状态:1=成功,2=失败
*/
@TableField("merge_type")
private Integer mergeType;
/**
* 创建时间
*/
@TableField("createtime")
private Integer createtime;
/**
* 删除时间
*/
@TableField("deletetime")
private Integer deletetime;
public static CcUserProductMergeVO toVO(CcUserProductMergeDO ccUserProductMergeDO) {
if(ccUserProductMergeDO == null){
return null;
}
CcUserProductMergeVO ccUserProductMergeVO = new CcUserProductMergeVO();
BeanUtils.copyProperties(ccUserProductMergeDO, ccUserProductMergeVO);
return ccUserProductMergeVO;
}
public static CcUserProductMergeDO toDO(CcUserProductMergeAddDTO ccUserProductMergeAddDTO) {
if (ccUserProductMergeAddDTO == null) {
return null;
}
CcUserProductMergeDO ccUserProductMergeDO = new CcUserProductMergeDO();
BeanUtils.copyProperties(ccUserProductMergeAddDTO, ccUserProductMergeDO);
return ccUserProductMergeDO;
}
}