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

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


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


    /**
     * migration
     */
    @TableField("migration")
    private String migration;
    /**
     * batch
     */
    @TableField("batch")
    private Integer batch;

    public static CcMigrationsVO toVO(CcMigrationsDO ccMigrationsDO) {
        if(ccMigrationsDO == null){
            return null;
        }
        CcMigrationsVO ccMigrationsVO = new CcMigrationsVO();
        BeanUtils.copyProperties(ccMigrationsDO, ccMigrationsVO);
        return ccMigrationsVO;
    }

    public static CcMigrationsDO toDO(CcMigrationsAddDTO ccMigrationsAddDTO) {
        if (ccMigrationsAddDTO == null) {
            return null;
        }
        CcMigrationsDO ccMigrationsDO = new CcMigrationsDO();
        BeanUtils.copyProperties(ccMigrationsAddDTO, ccMigrationsDO);
        return ccMigrationsDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy