k.e.book.ddh.entity.CcExpressCompanyDO 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_express_company")
@ApiModel(value="CcExpressCompanyDO", description="CcExpressCompany")
public class CcExpressCompanyDO extends Model {
private static final long serialVersionUID = 1L;
@TableId(value = "id", type = IdType.AUTO)
private Long id;
/**
* 名称
*/
@TableField("name")
private String name;
/**
* createtime
*/
@TableField("createtime")
private Integer createtime;
/**
* updatetime
*/
@TableField("updatetime")
private Integer updatetime;
public static CcExpressCompanyVO toVO(CcExpressCompanyDO ccExpressCompanyDO) {
if(ccExpressCompanyDO == null){
return null;
}
CcExpressCompanyVO ccExpressCompanyVO = new CcExpressCompanyVO();
BeanUtils.copyProperties(ccExpressCompanyDO, ccExpressCompanyVO);
return ccExpressCompanyVO;
}
public static CcExpressCompanyDO toDO(CcExpressCompanyAddDTO ccExpressCompanyAddDTO) {
if (ccExpressCompanyAddDTO == null) {
return null;
}
CcExpressCompanyDO ccExpressCompanyDO = new CcExpressCompanyDO();
BeanUtils.copyProperties(ccExpressCompanyAddDTO, ccExpressCompanyDO);
return ccExpressCompanyDO;
}
}