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

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


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


    /**
     * 用户ID
     */
    @TableField("user_id")
    private Integer userId;
    /**
     * 变更信息
     */
    @TableField("field")
    private String field;
    /**
     * 变更前
     */
    @TableField("before_data")
    private String beforeData;
    /**
     * 变更后
     */
    @TableField("after_data")
    private String afterData;
    /**
     * 创建时间
     */
    @TableField("createtime")
    private Integer createtime;
    /**
     * 更新时间
     */
    @TableField("updatetime")
    private Integer updatetime;

    public static CcUserInfoLogVO toVO(CcUserInfoLogDO ccUserInfoLogDO) {
        if(ccUserInfoLogDO == null){
            return null;
        }
        CcUserInfoLogVO ccUserInfoLogVO = new CcUserInfoLogVO();
        BeanUtils.copyProperties(ccUserInfoLogDO, ccUserInfoLogVO);
        return ccUserInfoLogVO;
    }

    public static CcUserInfoLogDO toDO(CcUserInfoLogAddDTO ccUserInfoLogAddDTO) {
        if (ccUserInfoLogAddDTO == null) {
            return null;
        }
        CcUserInfoLogDO ccUserInfoLogDO = new CcUserInfoLogDO();
        BeanUtils.copyProperties(ccUserInfoLogAddDTO, ccUserInfoLogDO);
        return ccUserInfoLogDO;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy